LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-02-2008, 04:29 PM   #1
sneakyimp
Member
 
Registered: Dec 2004
Posts: 795

Rep: Reputation: 50
450 errors sending mail on centos+ostfix+dovecot+amavisd via webmail interface


It's been a while since I set up my mail server (thanks to help from people here) and it's been having problems lately. Specifically, problems being able to send mail using the squirrelmail (a php-based webmail client). The errors usually look like this:
Code:
Message not sent. Server replied:

    Requested mail action not taken: mailbox unavailable
    450 4.1.1 <someone@mail.domain.edu>: Recipient address rejected: unverified address: connect to mailgate.cc.domain.edu[111.111.111.15]: Connection timed out
At first I thought this was due to a problem on the remote server but now I'm not so sure. The mail setup on my machine is basically:
* Perfect Setup CentOS 5
* Postfix/Dovecot/AmavisD/Spamassassin
* Squirrelmail

I don't know exactly how it works, but the setup basically has your server send mail to itself as a proxy and then scan everything, blah blah.

It was working great for about a year but squirrelmail started acting up recently. Interestingly, I can still send mail just fine using Thunderbird from my desktop. It would appear that Squirrelmail is having problems when it tries to contact the mail stack because it is eventually timing out. I ran the squirrelmail conf.pl script and it doesn't appear to have any settings that are related to timeouts.

I did a grep of the maillog and found these:
Code:
Jun  2 12:30:11 nameserver postfix/smtpd[4022]: NOQUEUE: reject: RCPT from spamserver.example.com[127.0.0.1]: 450 4.1.1 <some_guy@mail.somedomain.edu>: Recipient address rejected: unverified address: connect to mailgate.cc.somedomain.edu[111.111.111.15]: Connection timed out; from=<kathy@mydomain.com> to=<some_guy@mail.somedomain.edu> proto=ESMTP helo=<www.mydomain.com>
Jun  2 12:34:18 nameserver postfix/smtpd[3355]: NOQUEUE: reject: RCPT from spamserver.example.com[127.0.0.1]: 450 4.1.1 <some_guy@mail.somedomain.edu>: Recipient address rejected: unverified address: connect to mailgate.cc.somedomain.edu[111.111.111.15]: Connection timed out; from=<kathy@mydomain.com> to=<some_guy@mail.somedomain.edu> proto=ESMTP helo=<www.mydomain.com>
Jun  2 15:23:40 nameserver postfix/smtpd[15071]: NOQUEUE: reject: RCPT from spamserver.example.com[127.0.0.1]: 450 4.1.1 <some_guy@mail.somedomain.edu>: Recipient address rejected: unverified address: connect to mailgate.cc.somedomain.edu[111.111.111.15]: Connection timed out; from=<jason@mydomain.com> to=<some_guy@mail.somedomain.edu> proto=ESMTP helo=<mydomain.com>
I'm thinking now that squirrelmail's connection to postfix is timing out due to load on my server perhaps? Also, it doesn't seem consistent. I was just able to send thru squirrelmail as I was trying to reproduce the errors.

Any help troubleshooting this would be *much* appreciated.
 
Old 06-03-2008, 10:09 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Since Thunderbird is able to send mail, and Squirrelmail can't, and since the error messages you posted make reference to postfix/smtpd and ESMTP, I'd suspect the SMPT config in Squirrelmail.

Compare the settings in Squirrelmail to the settings in Thunderbird to see if you can find the problem.
 
Old 06-03-2008, 03:29 PM   #3
sneakyimp
Member
 
Registered: Dec 2004
Posts: 795

Original Poster
Rep: Reputation: 50
Neither squirrelmail nor thunderbird offer any timeout-related settings. To say 'just configure them the same way' doesn't really make any sense. The webserver and mail server are the same machine so squirrelmail is configured to look for 'localhost' rather than 'www.mydomain.com'. I think changing the server from localhost to a fully qualfied domain name would only make the problem worse due to the extra time for DNS lookup. These are the only server-related squirrelmail settings I can change:
Code:
IMAP Settings
--------------
4.  IMAP Server            : localhost
5.  IMAP Port              : 143
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : false
8.  Server software        : dovecot
9.  Delimiter              : detect

SMTP Settings
-------------
4.   SMTP Server           : localhost
5.   SMTP Port             : 25
6.   POP before SMTP       : false
7.   SMTP Authentication   : none
8.   Secure SMTP (TLS)     : false
9.   Header encryption key :
Do you really think any of those will help?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sendmail sending through mail relay errors gitterhat Linux - Software 1 10-25-2010 09:19 AM
LXer: Mail Server Setup With Exim, MySQL, Cyrus-Imapd, Horde Webmail On Centos 5.1 LXer Syndicated Linux News 0 02-21-2008 12:30 PM
webmail client for dovecot +posfix jimmyjiang Linux - Software 2 09-07-2007 11:00 AM
Spamassassin setup with Postfix, Dovecot and Amavisd snurckle Linux - General 2 04-07-2005 01:16 PM
Webmail interface for POP3 mail.. Has it been done? sedulous Linux - Software 18 05-17-2004 10:40 PM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration