I've got two servers on my network:
Now my Postfix server lets me send mail via SMTP just fine from Thunderbird on any machine that is in 'mynetworks' file:
Code: [root@mail ~]# cat /etc/postfix/mynetworks 127.0.0.0/8 192.168.0.0/24 The problem I'm having is that I've installed RoundCube on my web server listed above and I'm able to login and read all my messages perfectly via IMAP4. The problem is when I compose a new message and try to send via SMTP from webmail only. When I try and send, I get a SMTP error: SMTP Error (250) Authentication Failure. I can't understand what's causing this. When I 'tail' my Postfix log file, I don't see anything but an incoming connection and then an immediate disconnect. No details show why this is occurring. I then ran Postfix in debug mode to get more info and here's what I show:
Code: Jan 11 13:29:32 mail dovecot: imap-login: Login: user=<carlos>, method=PLAIN, rip=192.168.0.201, lip=192.168.0.200, mpid=2190, TLS Jan 11 13:29:32 mail postfix/smtpd[2191]: connect from www.iamghost.org[192.168.0.201] Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostname: www.iamghost.org ~? 127.0.0.0/8 Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostaddr: 192.168.0.201 ~? 127.0.0.0/8 Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostname: www.iamghost.org ~? 192.168.0.0/24 Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostaddr: 192.168.0.201 ~? 192.168.0.0/24 Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 220 mail.iamghost.org ESMTP Postfix Jan 11 13:29:32 mail postfix/smtpd[2191]: watchdog_pat: 0x1530c60 Jan 11 13:29:32 mail postfix/smtpd[2191]: < www.iamghost.org[192.168.0.201]: EHLO www.iamghost.org Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250-mail.iamghost.org Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250-PIPELINING Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250-SIZE 20480000 Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250-VRFY Jan 11 13:29:32 mail postfix/smtpd[2191]: match_list_match: www.iamghost.org: no match Jan 11 13:29:32 mail postfix/smtpd[2191]: match_list_match: 192.168.0.201: no match Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250-ETRN Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250-ENHANCEDSTATUSCODES Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250-8BITMIME Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250 DSN Jan 11 13:29:32 mail postfix/smtpd[2191]: watchdog_pat: 0x1530c60 Jan 11 13:29:32 mail postfix/smtpd[2191]: < www.iamghost.org[192.168.0.201]: RSET Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 250 2.0.0 Ok Jan 11 13:29:32 mail postfix/smtpd[2191]: watchdog_pat: 0x1530c60 Jan 11 13:29:32 mail postfix/smtpd[2191]: < www.iamghost.org[192.168.0.201]: QUIT Jan 11 13:29:32 mail postfix/smtpd[2191]: > www.iamghost.org[192.168.0.201]: 221 2.0.0 Bye Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostname: www.iamghost.org ~? 127.0.0.0/8 Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostaddr: 192.168.0.201 ~? 127.0.0.0/8 Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostname: www.iamghost.org ~? 192.168.0.0/24 Jan 11 13:29:32 mail postfix/smtpd[2191]: match_hostaddr: 192.168.0.201 ~? 192.168.0.0/24 Jan 11 13:29:32 mail postfix/smtpd[2191]: disconnect from www.iamghost.org[192.168.0.201] Jan 11 13:29:32 mail dovecot: imap(carlos): Disconnected: Logged out bytes=12/341
Anyone know what is causing this error? I've completely disable (I think) TLS configuration from Postfix (not Dovecot) to verify what the issue maybe. Still get the same error with TLS disable. I can telnet into the server from any PC and send mail via Telnet:
[cmennens@tuna ~]$ telnet mail.iamghost.org 25 Trying 192.168.0.200... Connected to mail.iamghost.org. Escape character is '^]'. 220 mail.iamghost.org ESMTP Postfix EHLO tuna.ideorlando.org 250-mail.iamghost.org 250-PIPELINING 250-SIZE 20480000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from:carlos@iamghost.org 250 2.1.0 Ok rcpt to:carlos.mennens@gmail.com 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> Subject:Test Email Message This is a test . 250 2.0.0 Ok: queued as 4E7E7140522 quit 221 2.0.0 Bye Connection closed by foreign host.
Any ideas on what this could be? It's driving me crazy and I'm exhausted myself trying to resolve this issue. _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e
On 01/12/2011 09:52 AM, Carlos Mennens wrote:
I've got two servers on my network:
- mail.iamghost.org [192.168.0.200 / 24]
- www.iamghost.org [192.168.0.201 / 24]
Now my Postfix server lets me send mail via SMTP just fine from Thunderbird on any machine that is in 'mynetworks' file:
Code: [root@mail ~]# cat /etc/postfix/mynetworks 127.0.0.0/8 192.168.0.0/24 The problem I'm having is that I've installed RoundCube on my web server listed above and I'm able to login and read all my messages perfectly via IMAP4. The problem is when I compose a new message and try to send via SMTP from webmail only. When I try and send, I get a SMTP error: SMTP Error (250) Authentication Failure. I can't understand what's causing this. When I 'tail' my Postfix log file, I don't see anything but an incoming connection and then an immediate disconnect. No details show why this is occurring. I then ran Postfix in debug mode to get more info and here's what I show:
Is Roundcube trying to authenticate? Try this:
$rcmail_config['smtp_server'] ='192.168.0.200'; $rcmail_config['smtp_port'] = 25; $rcmail_config['smtp_user'] = ''; $rcmail_config['smtp_pass'] = ''; $rcmail_config['smtp_auth_type'] = ''; _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e