I make the installation with the install.sh script, and my ubuntu version is: 8.04
And this is the /var/log/mail.log when I tried to send an email:
Mar 5 16:17:42 pronisis postfix/smtpd[19698]: NOQUEUE: reject: RCPT from unknown[190.1.28.176]: 550 5.1.1 <chavez@pronisis.com>: Recipient address rejected: User unknown in local recipient table; from=<lilliam.bev_xf@iland.net> to=<chavez@pronisis.com> proto=ESMTP helo=<eojhytgo>
Mar 5 16:17:45 pronisis postfix/smtpd[19698]: disconnect from unknown[190.1.28.176]
Mar 5 16:17:58 pronisis postfix/anvil[12240]: statistics: max connection rate 1/60s for (smtp:88.226.180.5) at Mar 5 16:07:58
Mar 5 16:17:58 pronisis postfix/anvil[12240]: statistics: max connection count 1 for (smtp:88.226.180.5) at Mar 5 16:07:58
Mar 5 16:17:58 pronisis postfix/anvil[12240]: statistics: max cache size 2 at Mar 5 16:08:21
Mar 5 16:18:41 pronisis postfix/smtpd[19634]: connect from unknown[201.263.319.232]
Mar 5 16:18:51 pronisis postfix/smtpd[19634]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Mar 5 16:18:51 pronisis postfix/smtpd[19634]: warning: unknown[201.263.319.232]: SASL LOGIN authentication failed: generic failure
Mar 5 16:18:52 pronisis postfix/smtpd[19634]: lost connection after AUTH from unknown[201.163.219.232]
Mar 5 16:18:52 pronisis postfix/smtpd[19634]: disconnect from unknown[201.263.319.232]
I can tell you that I follow your instrucctions, I’ll write all the output:
chmod 755 /var/spool/postfix/var/run/saslauthd
/etc/init.d/saslauthd restart
Stopping SASL Authentication Daemon saslauthd [ OK ]
Starting SASL Authentication Daemon saslauthd [ OK ]
ls -la /var/spool/postfix/var/run/saslauthd
total 12
drwx–x— 2 root sasl 4096 Mar 5 19:29 .
drwxr-xr-x 3 root root 4096 Mar 4 02:27 …
srwxrwxrwx 1 root root 0 Mar 5 19:29 mux
-rw------- 1 root root 0 Mar 5 19:29 mux.accept
-rw------- 1 root root 6 Mar 5 19:29 saslauthd.pid
Then I made this:
chmod 755 /var/spool/postfix/var/run/saslauthd
ls -la /var/spool/postfix/var/run/saslauthd
total 12
drwxr-xr-x 2 root sasl 4096 Mar 5 19:31 .
drwxr-xr-x 3 root root 4096 Mar 4 02:27 …
srwxrwxrwx 1 root root 0 Mar 5 19:31 mux
-rw------- 1 root root 0 Mar 5 19:31 mux.accept
-rw------- 1 root root 6 Mar 5 19:31 saslauthd.pid
To check if the restart change the permissions. Then When I restar:
I get this:
/etc/init.d/saslauthd restart
Stopping SASL Authentication Daemon saslauthd [ OK ]
Starting SASL Authentication Daemon saslauthd [ OK ]
ls -la /var/spool/postfix/var/run/saslauthd
total 12
drwx–x— 2 root sasl 4096 Mar 5 19:35 .
drwxr-xr-x 3 root root 4096 Mar 4 02:27 …
srwxrwxrwx 1 root root 0 Mar 5 19:35 mux
-rw------- 1 root root 0 Mar 5 19:35 mux.accept
-rw------- 1 root root 6 Mar 5 19:35 saslauthd.pid
Well, I can see the problem, the /etc/init.d/saslauthd restart
change the permissions.
Because I only make the chmod:
chmod 755 /var/spool/postfix/var/run/saslauthd
And the mails IMAP client now sent the email!!!
Now may question will be every time I restart the saslauthd or I restart the server I’ll need to change the permissions, or there is a solution or this.
If you have the GPL version, or you simply don’t want to bother with the above, you can email me login details at eric@virtualmin.com – and just include a link to this thread in the message body.
For Ubuntu users (and potentially Debian, I haven’t looked) – it turns out that the saslauthd init script does indeed reset the permissions on that dir to 710 (which breaks things).
The POP mail works fine, but the smtp have problems.
I made a test without the smtp authentication (SMTP AUTH) and I got this:
Error occurred while sending the message:
554 5.7.1 <pronisis@hotmail.com>: Relay access denied
And this in the log file:
Mar 5 18:40:09 pronisis postfix/smtpd[11626]: connect from unknown[201.163.219.156]
Mar 5 18:40:11 pronisis postfix/trivial-rewrite[14116]: warning: do not list domain pronisis.com in BOTH mydestination and virtual_alias_domains
Mar 5 18:40:11 pronisis postfix/smtpd[11626]: NOQUEUE: reject: RCPT from unknown[201.163.219.156]: 554 5.7.1 <pronisis@hotmail.com>: Relay access denied; from=<hvillasana@pronisis.com> to=<pronisis@hotmail.com> proto=SMTP helo=<localhost>
I hope this information can help you to tell me how to fix this problem!!!