Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-25-2007, 05:09 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 19

Rep: Reputation: 0
postfix mailq

Hi all, I hope someone can help me with this. I run postfix and everything has been ok. Now i see the following in my logs

reject: RCPT from localhost[]: 554 <>: Relay access denied; from=<> to=<> proto=ESMTP helo=<>


to=<***.*****>,[], delay=1831, status=deferred (host[] refused to talk to me: 451 VS1-IP Excessive unknown recipients - possible Open Relay (#4.1.8)

Can someone tell me what it means. I hope someone is not trying to relay through me.

Also i have a lot of mails in my queue and some of them are not valid domains. Postfix keeps trying to send this mails. How can i delete mails in the queue?
Old 01-25-2007, 06:12 AM   #2
LQ Newbie
Registered: Apr 2004
Distribution: Debian Sarge, OpenSUSE 10.2, FC6, RHEL4, RHEL5
Posts: 15

Rep: Reputation: 0
While newbie but interested in postfix configuration myself, I looked for some answers to your questions and found this tool, maybe you could check the security of your server here first ?
Old 01-25-2007, 06:53 AM   #3
LQ Newbie
Registered: Apr 2006
Posts: 19

Original Poster
Rep: Reputation: 0
i tried it and got this error
Default domain is

Connecting to ***.***.***.***...


Unfortunately the program failed because...

Open socket failed.
I have no idea what it means can you explain?
Old 01-25-2007, 07:37 AM   #4
LQ Newbie
Registered: Apr 2004
Distribution: Debian Sarge, OpenSUSE 10.2, FC6, RHEL4, RHEL5
Posts: 15

Rep: Reputation: 0
Your server is probably unreachable from the outside; are you behind a NAT or a FW ?
Is it supposed to accept connections from outside your local network ?
If not, you can't be an open relay.
Old 01-25-2007, 10:42 AM   #5
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
the output of postconf -n would go a long way in determing what might be wrong with your configuration..

Also verify mydestination, mydomain, myhostname, mynetworks are all set correctly in your postfix configuraton. if these are incorrect you can cause the server to allow relaying or cause other servers to deny mail from you.

also make sure the hostname on your mailserver is set to the FQDN that is registerd to be your mail server, and set in the myhostname variable, and that rDNS has been configured for your mail server by your DNS hosting provider.

If a mailserver you are attempting to send mail to does a rDNS lookup on your mail server and doesn't get a valid response it may deny accepting mail from you.

If a mailserver you are attempting to send mail to does a hostname check against the name your server provide during HELO and doesn't get a response that matches the Registered name of your server it may deny accepting mail from you. as well as submit your server to a blacklist.

Setting your Hostname


As for the Queue, the mail in the queue will time out eventually and be removed by postfix automatically, this is set at 5 days by default. This 5 Day time limit is INTENTIONAL, and is part of the design of a proper mail server so you probably don't want to change it.. maximal_queue_lifetime (default: 5d)


configuration, postfix

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
sorting Mailq matt1982 Linux - Networking 0 11-03-2006 11:36 AM
mailq clearing mnauta Linux - General 0 04-12-2005 08:34 PM
I/O Error on mailq? gigi Linux - Software 0 04-15-2004 12:31 AM
qmail mailq R4z0r Linux - Software 1 10-13-2003 08:37 AM
Sendmail 8.12.3 Mailq juser Linux - Newbie 0 05-22-2003 03:02 PM

All times are GMT -5. The time now is 08:39 PM.

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