LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2012, 01:28 PM   #1
giorniwrek
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
Question User unknown Postfix


I am looking to turn off, disable the rejection notification to the sender when user mailbox does not exist. And I want to be notified when it does happen both on incoming and outgoing messages. I am not sure what or how to call this..

Thanks any help is gratefully appreciated..
 
Old 04-22-2012, 05:26 PM   #2
danliston
LQ Newbie
 
Registered: Feb 2012
Location: South Dakota
Distribution: Fedora, CentOS, Oracle, OpenSolaris
Posts: 18

Rep: Reputation: Disabled
It sounds like you need to read some RFCs pertaining to the SMTP protocol. http://www.ietf.org/rfc/rfc2821.txt

During an SMTP connection there is the greeting, acknowledgement, sender, accept/reject, receiver, accept/reject, etc. If postfix is following the rules, the correct action for an address/user that does not exist is fatal/permanent error code 550, user unknown. If you do not need to receive email to your domain 24x7, you can turn of the smtp daemon (postfix), and let all connections to port 25 get refused. I am more familiar with sendmail, but other than cool points of having your own domain/mail server, there are many ways to work around the lack of having one too. Fetchmail, or ETRN for example.

Sorry, I went down a rabbit trail. To answer your question, you need to intercept the part of the SMTP handshake during the RCPT TO portion of the communication, but if you do not respond with a rejection, the other end will time out and try again later (for up to 4 days or more).

Nobody likes being hammered on by hackers. Perhaps a tcpwrapper, a firewall rule, or an RBL is a better solution than what you are actually asking for. You could also write a log parser to watch your postfix log for these failure messages to notify you too, but I would suggest not running it more than once a day for your own sanity's sake.
 
  


Reply



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
Don't let Postfix reply with "Recipient address rejected: User unknown in virtual mai lithos Linux - Server 3 11-25-2011 04:05 PM
Postfix 2.8.2 rejecting some mail with user unknown KamasCZ Linux - Server 1 04-22-2011 08:34 AM
[SOLVED] POSTFIX - virtual domain and alias maps results in 'unknown user' brenton.williams Linux - Server 2 08-19-2009 12:32 AM
Postfix status=SOFTBOUNCE unknown user:* gabsik Linux - Server 0 01-30-2009 06:33 PM
Postfix Problem (Unknown User) solkan Linux - General 5 09-12-2003 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 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
Open Source Consulting | Domain Registration