Sorry about the delay getting back to you, got distracted anyways should we start a new thread for this?
For review i previously ran dpkg-reconfigure postfix and used a smarthost setup, before i though i was going to use this as a mail system. Stupid me now i would like to use it as a full blown email server. Issues below
Seems outbound email is sometimes working, when i send an email using the mail command from ***@myvirtualminserver.com to my gmail account it works probably through the relay? which is not exactly what i want but ok for now.
Oct 21 16:27:15 host1 postfix/pickup[29348]: 3082EE76576: uid=1055 from=<van-ginneken.com>
Oct 21 16:27:15 host1 postfix/cleanup[1553]: 3082EE76576: message-id=<***@host1.localdomain>
Oct 21 16:27:15 host1 postfix/qmgr[1062]: 3082EE76576: from=<van-***@host1.computerking.ca>, size=343, nrcpt=1 (queue active)
Oct 21 16:27:15 host1 postfix/smtp[1555]: 3082EE76576: to=<***@gmail.com>, relay=10.0.0.102[10.0.0.102]:25, delay=0.15, delays=0.09/0.01/0/0.05, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 42123285700)
Oct 21 16:27:15 host1 postfix/qmgr[1062]: 3082EE76576: removed
However when i try to reply to the email I do not seen anything in the mail.log file and get this error from gmail
Delivery to the following recipient failed permanently:
***@myvirtualminserver.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <***@myvirtualminserver.com>: Relay access denied (state 13).
my /etc/postfix/main.cf
Oct 21 15:58:38 host1 postfix/error[31715]: 936BFE7644A: to=<***@computerking.ca>, orig_to=<***@host1.computerking.ca>, relay=none, delay=0.07, delays=0.03/0/0/0.04, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Oct 21 15:58:38 host1 postfix/qmgr[1062]: 936BFE7644A: removed
See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost, host1, host1.mydomain.com
relayhost = 10.0.0.102
mynetworks = 127.0.0.0/8
inet_interfaces = all
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual
sender_bcc_maps = hash:/etc/postfix/bcc
#mailbox_command = procmail -a "$EXTENSION"
#mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
mailbox_size_limit = 0
allow_percent_hack = no
myorigin = /etc/mailname
inet_protocols = ipv4
sender_dependent_default_transport_maps = hash:/etc/postfix/dependent
couple of other things that might be a problem i already have an email server running at this IP it a VM too, i do have another IP but it has an old server that i am trying to decommission (mostly its an old virtualmin box serving up some websites) moving everything to the new virtualmin host. Do i need to possibly ask my COLO for another IP to get this working? or will some firewall, dns, inbound relay tricks make it work? I suppose i am not using the old IP for mail i could try to forward it to the new IP on different port yuk the more i write the worse it seems there must be an easy way.
also have a bunch of these in the logs
ct 21 15:50:21 host1 postfix/local[31430]: 84F04E7644A: to=<www-***@host1.computerking.ca>, orig_to=<www-data>, relay=local, delay=0.99, delays=0.08/0/0/0.9, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
I believe i have postfix setup with a smarthost configuration
Computer King CaN-Mail Surveillance King
http://computerking.ca http://canmail.org http://surveillanceking.net
Surveillance - Sales Service - Hosting Backup
Internet Based Surveillance Systems
Custom Service Pac kages
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online ERP and Accounting Packages
----- Original Message -----
From: Jamie Cameron <***@webmin.com>
To: Webmin users list <webadmin-***@lists.sourceforge.net>
Sent: Tue, 16 Oct 2012 22:18:01 -0600 (MDT)
Subject: Re: [webmin-l] The procmail has 0 permissions
You shouldn't do another dpkg-reconfigure, as that will likely set your Postfix config back to the default state.
What specifically isn't working currently?
On 16/Oct/2012 14:08 RYAN M. vAN GINNEKEN <***@computerking.ca> wrote ..
ok thanks again and again and again thats gotten it working, also i am sure virtualmin had set this stuff up correctly, but i had messed around with the postfix system on this machine awhile back, and probably broke it.
I think i have postfix set to local incoming mail only ie dpkg-reconfigure postfix is local delivery with smarthost relay. If i do another reconfigure will it mess stuff up again? what is the best way to get incoming and outgoing email working with virtualmin again?
From: "Jamie Cameron" <***@webmin.com>
To: "Webmin users list" <webadmin-***@lists.sourceforge.net>
Sent: Tuesday, 16 October, 2012 2:35:23 PM
Subject: Re: [webmin-l] The procmail has 0 permissions
Yes, the line needs to be :
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAMEAlso, /usr/bin/procmail-wrapper needs to have these permissions :
# ls -l /usr/bin/procmail-wrapper -rwsr-sr-x. 1 root root 4994 May 10 2007 /usr/bin/procmail-wrapper
A default Virtualmin install should set all this up though.On 16/Oct/2012 12:41 RYAN M. vAN GINNEKEN <***@computerking.ca> wrote ..Hello again getting close to having virualmin running the way i like it and error free however i have couple of hurdles left working on debian squeeze and trying to get postfix working, or more to the point tring to get span/virus/procmail filter working but i keep getting this error. Email is always tough to get going for me so i left it for last. Anyways here is the error and some things i have done to try and fix it oh and as useual i ran may have messed things up by running a dpgk-reconfigure postfix and set it to local with smarthost as i did not think i was even going to use this system for email but now i am.
Failed to save enabled features : The procmail command procmail has 0 permissions, when it should be setuid and setgid to root. Email may not be properly delivered or checked for spam.I have tried the following to fix it
grep mailbox_command /etc/postfix/main.cf
mailbox_command = procmail -a "$EXTENSION"
so tried changing it to this
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
I do have a /etc/procmailrc this looks like
LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
EXITCODE=$?
:0
* ?/usr/bin/test "$EXITCODE" = "73"
/dev/null
EXITCODE=0
:0
* ?/usr/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/
etc/we
bmin/virtual-server/procmail/$VIRTUALMIN
}
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT
***@host1:/home/c0mputerking# chgrp root /usr/bin/procmail
***@host1:/home/c0mputerking# ls -l /usr/bin/procmail
-rwxr-xr-x 1 root root 89720 Apr 25 2010 /usr/bin/procmail
***@host1:/home/c0mputerking# chmod ug+s /usr/bin/procmail
***@host1:/home/c0mputerking# ls -l /usr/bin/procmail
-rwsr-sr-x 1 root root 89720 Apr 25 2010 /usr/bin/procmail
ls -l /usr/bin/procmail*
-rwsr-sr-x 1 root root 89720 Apr 25 2010 /usr/bin/procmail
-rwxr-xr-x 1 root mail 4536 Dec 13 2006 /usr/bin/procmail-wrapper
Computer King CaN-Mail Surveillance King
http://computerking.ca http://canmail.org http://surveillanceking.net
Surveillance - Sales Service - Hosting Backup
Internet Based Surveillance Systems
Custom Service Pac kages
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online ERP and Accounting Packages
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list