| Linode Forum https://forum.linode.com/ |
|
| SMTP? Postfix + Dovecot, "Relay Access.." SOLVED https://forum.linode.com/viewtopic.php?f=11&t=6667 |
Page 1 of 1 |
| Author: | Emmanuel2 [ Sun Feb 06, 2011 2:06 pm ] |
| Post subject: | SMTP? Postfix + Dovecot, "Relay Access.." SOLVED |
I've followed the postfix guide (http://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.04-lucid) to the letter (I think) and installed postfix, dovecot and saslauthd. I've setup my domains and users and I can receive emails perfectly fine, but I can't send them. I think there's problems trying to connect to the SMTP server or something? In Roundcube I get this error message: SMTP Error (554): Failed to add recipient "email@example.com" (5.7.1 : Relay access denied) I've also tried using two other (windows) email clients which can both receive emails fine but can't connect to the SMTP server. Here's the results of a telnet: Code: telnet localhost 25 Here's my postfix main.cf file: Code: smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) Am I doing something wrong here? Or perhaps I'm using wrong settings in my mail client? I've trying something like this: SMTP server: li244-40.members.linode.com SMTP Port: 25 SMTP Auth: Yes Authentication: PLAIN It doesn't even seem to connect to the smtp server... Any help would be greatly appreciated. Thanks! |
|
| Author: | Emmanuel2 [ Sun Feb 06, 2011 2:22 pm ] |
| Post subject: | |
I've now managed to connect to the smtp server from my desktop mail client, but I get the same message as I got from roundcube "Relay Access Denied" when it tries to send an email |
|
| Author: | Stever [ Sun Feb 06, 2011 3:53 pm ] |
| Post subject: | |
It looks like your sasl isn't working - what do your logs say when you try to send an email? |
|
| Author: | Emmanuel2 [ Sun Feb 06, 2011 5:00 pm ] |
| Post subject: | |
Here's a something from /var/log/mail.log Code: Feb 6 19:29:19 li244-40 postfix/smtpd[10658]: warning: 88.191.65.117: hostname 88-191-65-117.rev.dedibox.fr verification failed: Name or service not known Otherwise there's lots of entries like this Code: Feb 6 19:14:06 li244-40 dovecot: imap-login: Login: user=<eman@onlythebible.com>, method=PLAIN, rip=173.255.234.40, lip=173.255.234.40, secured Ah!, this bit could be what we're looking for: Code: Feb 6 19:07:14 li244-40 postfix/smtpd[10266]: connect from c114-77-115-211.chirn2.vic.optusnet.com.au[114.77.115.211] This bit Quote: Feb 6 19:07:16 li244-40 postfix/smtpd[10266]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory looks like the problem.
So there must be something wrong with the saslauthd server? |
|
| Author: | obs [ Sun Feb 06, 2011 7:39 pm ] |
| Post subject: | |
Looks like it, first try service saslauthd restart if that doesn't work try running through http://library.linode.com/email/postfix ... _use_mysql again |
|
| Author: | Emmanuel2 [ Sun Feb 06, 2011 9:26 pm ] |
| Post subject: | |
Okay, Tried "service saslauthd restart", which did this: Code: * Stopping SASL Authentication Daemon saslauthd [ OK ] Yes, and then I carefully went through that section of the tutorial, but nothing has changed |
|
| Author: | obs [ Sun Feb 06, 2011 11:49 pm ] |
| Post subject: | |
Well that about covers the extent of my mail server knowledge (don't run one, never have), so I'll have to defer to someone who does. |
|
| Author: | Emmanuel2 [ Mon Feb 07, 2011 2:44 am ] |
| Post subject: | |
Okay, well thanks for trying. I still haven't figured it out. |
|
| Author: | Emmanuel2 [ Mon Feb 07, 2011 2:56 am ] |
| Post subject: | |
Okay, now I'm getting another slightly different error message. Probably related to the same problem though: Code: Feb 7 06:53:11 li244-40 postfix/smtpd[16108]: warning: c114-77-115-211.chirn2.vic.optusnet.com.au[114.77.115.211]: SASL LOGIN authentication failed: authentication failure |
|
| Author: | Emmanuel2 [ Mon Feb 07, 2011 3:11 am ] |
| Post subject: | |
Problem Solved! Ended up uncommenting the following lines from the /etc/postfix/master.cf file Code: -o smtpd_sasl_auth_enable=yes As well as adding this new line Code: submission inet n - n - - smtpd Now it works like a charm, the host rejected error was just because I had the wrong password. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|