Find the answer to your Linux question:
Results 1 to 4 of 4
emails sent and received by the mail server are sent into queue but not delivered or any mails in the queue received by the email client. Please help me fix ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    4

    Postfix server: Mails are sent to queue


    emails sent and received by the mail server are sent into queue but not delivered or any mails in the queue received by the email client.


    Please help me fix this. The machine got restarted due to power failures before this issue happened.

    Thank you
    tAN

    Resolution:

    Postfix: Temporary failure
    By brianchrist
    After a system crash (caused by overloaded on Power Source) my Postfix is not working properly, symptoms:

    - sent and receive (SMTP & POP) work normal, no error
    - no mail received
    - in mail log there is “temporary failure” words

    Workaround:

    - look at the log detail
    - this error is not caused by postfix software, but by it’s supported softwares
    - make sure mysql (database), amavis (antivirus), spamassassin (spam blocker) are running

    Here’s an example of failed amavis:

    Nov 10 09:08:11 smtp3 postfix/smtpd[10079]: warning: 202.57.4.66: address not listed for hostname mail.id.dbsvickers.com
    Nov 10 09:08:11 smtp3 postfix/smtpd[10079]: connect from unknown[202.57.4.66]
    Nov 10 09:08:11 smtp3 postfix/smtpd[10079]: E313914D7E8: client=unknown[202.57.4.66]
    Nov 10 09:08:11 smtp3 postfix/cleanup[8259]: E313914D7E8: message-id=<2PwwjhNaX0000a226@dbsvi-es01.id.dbsvickers.com>
    Nov 10 09:08:11 smtp3 postfix/qmgr[4947]: E313914D7E8: from=<>, size=2799, nrcpt=1 (queue active)
    Nov 10 09:08:11 smtp3 amavis(client)[10140]: failed to connect(): Connection refused
    Nov 10 09:08:11 smtp3 amavis(client)[10140]: failing with EX_TEMPFAIL: Connection refused
    Nov 10 09:08:11 smtp3 postfix/smtpd[10079]: disconnect from unknown[202.57.4.66]
    Nov 10 09:08:11 smtp3 postfix/pipe[10071]: E313914D7E8: to=<cyrus8randolph9@EmaillionairesEmail.com>, relay=vscan, delay=0, status=deferred (temporary failure
    )


    After you have edited your config files ( main.cf & master.cf) and make sure there are no references to amavis, you must requeue the messages already in postfix.

    run tail -n 100 /var/log/mail - you should not see relay = vscan or amavis

    try issuing:

    'postsuper -r ALL'
    Last edited by tanmecolor; 11-03-2009 at 08:27 PM. Reason: Resolved:

  2. #2
    Just Joined!
    Join Date
    Sep 2007
    Posts
    14

    Question

    I have other problem with postfix mail queue. It is full with mails that cannot be send because of wrong address. For example:
    (delivery temporarily suspended: connect to wrong.moc[260.260.260.260]:25: Connection timed out)
    For one day number of these messages increase to more than 2000. I delete them with
    postsuper -d ALL
    postsuper -d ALL deferred
    but after 5 minutes they start to fill the queue again!
    These 2-3 wrong addresses was entered by me when I configure my Drupal installation. Now there aren't users with these e-mails but something (most likely Drupal) is still trying to send messages to them.
    Maybe the problem is in Drupal but:

    Is there any way that I can find out which script or program is trying to send these messages?

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    4
    Hi ,
    View the logs and verify the date and time of the deferred emails, if these are re-queued emails or new emails sent from your drupal system . If the time stamp states these to be new then, install an email scanner ( smtp port scanner ) to see any kind of activity from your machine.

    With a combination of personal firewall ( sygate) and the email scanner you could identify the script that's malfunctioning.

    garykessler.net/library/is_tools_scan.html


    To remove all mail from the queue, enter:
    # postsuper -d ALL

    To remove all mails in the deferred queue, enter:
    # postsuper -d ALL deferred

    Regards
    tan

    This will remove

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Sep 2007
    Posts
    14
    Excuse me, I forgot to mention that I use Debian.
    The messages are new. At the moment I have 1050 of them with time stamp - today.
    Here is my masked syslog:

    Code:
    Jan 22 03:49:01 katy postfix/pickup[2222]: B55BB5B5BB: uid=0 from=<denny>
    Jan 22 03:49:01 katy postfix/cleanup[3333]: B55BB5B5BB: message-id=<11222000000022.B55BB5B5BB@mydomain.net>
    Jan 22 03:49:01 katy postfix/qmgr[4444]: B55BB5B5BB: from=<denny@very.wrong.moc>, size=333, nrcpt=1 (queue active)
    Jan 22 03:49:05 katy postfix/pickup[2222]: AA66A666AA: uid=1000 from=<mike>
    Jan 22 03:49:05 katy postfix/cleanup[3333]: AA66A666AA: message-id=<55050005550055.AA66A666AA@mydomain.net>
    Jan 22 03:49:05 katy postfix/qmgr[4444]: AA66A666AA: from=<mike@very.wrong.moc>, size=444, nrcpt=1 (queue active)
    Jan 22 03:49:26 katy postfix/qmgr[4444]: CC7C77C7C: from=<mike@very.wrong.moc>, size=555, nrcpt=1 (queue active)
    Jan 22 03:49:26 katy postfix/qmgr[4444]: 77D7DDD7DD: from=<denny@very.wrong.moc>, size=333, nrcpt=1 (queue active)
    
    
    Jan 22 03:49:56 katy postfix/smtp[5555]: connect to wrong.moc[260.260.260.260]:25: Connection timed out
    Jan 22 03:49:56 katy postfix/smtp[6666]: connect to wrong.moc[260.260.260.260]:25: Connection timed out
    
    Jan 22 03:49:56 katy postfix/smtp[6666]: 88EE8E8EEE: to=<denny@very.wrong.moc>, orig_to=<denny>, relay=none, delay=4612, delays=4581/0.05/30/0, dsn=4.4.1, status=deferred (connect to wrong.moc[260.260.260.260]:25: Connection timed out)
    
    Jan 22 03:49:56 katy postfix/error[7777]: F9FF9FFF9: to=<mike@very.wrong.moc>, orig_to=<mike>, relay=none, delay=2272, delays=2241/30/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to wrong.moc[260.260.260.260]:25: Connection timed out)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •