I followed falko's Perfect Server How to for Debian etch and it was great. Saved me a lot of headaches. But I have one email problem. I can send and receive to and from anyone who's registered as a user on ISPConfig using the SquirrelMail I've installed on the site. Registered users can receive email from outside with no problems. But registered users cannot send email to anyone outside. No "returned" or error messages are received. The email just never shows up in the intended recipient's box on Gmail. My guess is that it's related to my being on a VPS server. I'm on a vps which gives me a hostname of myassignedusername.hostingcompanyname.de. I have a domain name, mycompanyname.com, that I have set up using ISPConfig's DNS options. Sites I have set up on the server work fine. Here is mail.log output of a successful send from one user to another on the local network: Apr 16 07:43:42 myassignedusername postfix/smtpd[26113]: connect from localhost.localdomain[127.0.0.1] Apr 16 07:43:42 myassignedusername postfix/smtpd[26113]: C0F2A213167A: client=localhost.localdomain[127.0.0.1] Apr 16 07:43:42 myassignedusername postfix/cleanup[26116]: C0F2A213167A: message-id=<[email protected]> Apr 16 07:43:42 myassignedusername postfix/qmgr[22166]: C0F2A213167A: from=<[email protected]>, size=734, nrcpt=1 (queue active) Apr 16 07:43:42 myassignedusername postfix/smtpd[26113]: disconnect from localhost.localdomain[127.0.0.1] Apr 16 07:43:42 myassignedusername imapd: Connection, ip=[::ffff:127.0.0.1] Apr 16 07:43:42 myassignedusername imapd: LOGIN, user=support, ip=[::ffff:127.0.0.1], port=[43925], protocol=IMAP Apr 16 07:43:42 myassignedusername postfix/pickup[22197]: D54D82131681: uid=10003 from=<fred> Apr 16 07:43:42 myassignedusername postfix/cleanup[26116]: D54D82131681: message-id=<[email protected]> Apr 16 07:43:42 myassignedusername postfix/local[26120]: C0F2A213167A: to=<[email protected]>, relay=local, delay=0.09, delays=0.06/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-) Apr 16 07:43:42 myassignedusername postfix/qmgr[22166]: C0F2A213167A: removed Apr 16 07:43:42 myassignedusername postfix/qmgr[22166]: D54D82131681: from=<[email protected]>, size=351, nrcpt=1 (queue active) Apr 16 07:43:42 myassignedusername postfix/local[26120]: D54D82131681: to=<[email protected]>, relay=local, delay=0.01, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-) Apr 16 07:43:42 myassignedusername postfix/qmgr[22166]: D54D82131681: removed And here is output from mail.log on an unsucessful send to a Gmail user: Apr 16 07:50:39 myassignedusername postfix/smtp[29896]: 607B32131681: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[209.85.129.27]:25, delay=3.6, delays=0.08/0.01/0.79/2.7, dsn=2.0.0, status=sent (250 2.0.0 OK 1208325174 p38si13435417fke.13) Apr 16 07:50:39 myassignedusername postfix/qmgr[22166]: 607B32131681: removed I tried this once listing my VPS hostname in ISPConfig's server settings. That presented even more email problems. This time, I put my own domain name in ISPConfig's Server Settings box, and I have some functionality, but the problem with sending to the outside remains. Changing /etc/hosts or hostname does not help. Those are set each time the system reboots. How can I configure ISPConfig to make this work? And yes, I do have the lines in /etc/postfix/main.cf pointing to local-host-names and virtusertable.
Now I see... Emails were arriving but were being shoved into spam. I have added an spf record in an attempt to help. Any other ideas? Otherwise, awesome how to guide. It successfully led even me through a complex process.
Thanks for the tip. I'm glad to know about that list. No, the problem was really more DNS than mail related. Gmail was "neutral" about the email because of uncertainty about the DNS. Now everything is sending and receiving as it should. Great How to!
All's well that ends well. I went back to your tutorial on using GoDaddy and ISPConfig to set up nameservers. I didn't try to improvise this time, and everything worked fine. Mail is doing well too, except I can't figure out how to authenticate for sending mail from Thunderbird. With pop, I just have the ISPConfig username and pw, and all works fine, but with smtp, I try the same, and it keeps popping the pw prompt up over and over again. Send works fine from Squirrelmail on the server though, but of course, that's self-authenticating, right?
Aha! There is an error: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied I have gone back over the modifications to the saslauthd file in the Perfect Server How to. And I've re-run the telnet test on localhost 25 and have STARTTLS, AUTH PLAIN LOGIN and AUTH=PLAIN LOGIN in the output. When I do a restart on saslauthd, it goes fine and shows no errors in the syslog. I'm at a lost.
Requested info ~# ps aux | grep saslauthd root 28127 0.0 0.0 7932 752 ? Ss 20:36 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 28128 0.0 0.0 7932 488 ? S 20:36 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 28129 0.0 0.0 7932 372 ? S 20:36 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 28130 0.0 0.0 7932 372 ? S 20:36 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 28131 0.0 0.0 7932 372 ? S 20:36 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5 root 10108 0.0 0.0 1680 488 pts/0 R+ 21:03 0:00 grep saslauthd Relevant lines from /etc/default/saslauthd: START=yes OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
Output: drwx--x--- 2 root sasl 4096 Apr 17 20:36 . drwxr-xr-x 3 root root 4096 Apr 15 18:29 .. -rw------- 1 root root 0 Apr 17 20:36 cache.flock -rw------- 1 root root 945152 Apr 17 20:36 cache.mmap srwxrwxrwx 1 root root 0 Apr 17 20:36 mux -rw------- 1 root root 0 Apr 17 20:36 mux.accept -rw------- 1 root root 6 Apr 17 20:36 saslauthd.pid