LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-22-2007, 06:25 PM   #1
mikelbeck
LQ Newbie
 
Registered: Sep 2007
Location: Lawn Guyland, Noo Yawk
Distribution: CentOS 5.1
Posts: 12

Rep: Reputation: 0
Drop Mail for unknown locals (Postfix)


Any idea how to drop mail for an unknonwn local recipient instead of bouncing it with Postfix?
 
Old 10-23-2007, 09:26 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
By default postfix doesn't bounce mail to unknown local addresses; it rejects it. Is the mail in question being rejected or bounced?
 
Old 10-23-2007, 09:30 AM   #3
mikelbeck
LQ Newbie
 
Registered: Sep 2007
Location: Lawn Guyland, Noo Yawk
Distribution: CentOS 5.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
By default postfix doesn't bounce mail to unknown local addresses; it rejects it. Is the mail in question being rejected or bounced?
They're being bounced, I'd prefer that they're just rejected.
 
Old 10-23-2007, 09:38 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Let's see logs showing everything from submission to bounce, and the output of "postconf -n".
 
Old 10-23-2007, 04:46 PM   #5
mikelbeck
LQ Newbie
 
Registered: Sep 2007
Location: Lawn Guyland, Noo Yawk
Distribution: CentOS 5.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
Let's see logs showing everything from submission to bounce, and the output of "postconf -n".
Ok, I'm a dunce. ;-)

I couldn't find any bounces in the logs... so I looked at what was piling up in the queue and it's not bounces from my side, it's mail that can't be delivered to the destination (off my server).

Will those mails stay in the queue forever or do they get purged after some time?
 
Old 10-23-2007, 05:58 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Those mails will stay in the queue for 5 days, and further attempts will be made to deliver them. If delivery is not successful by then, they'll be returned to the sender. You can also purge them manually with postsuper.
 
Old 10-23-2007, 05:59 PM   #7
mikelbeck
LQ Newbie
 
Registered: Sep 2007
Location: Lawn Guyland, Noo Yawk
Distribution: CentOS 5.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
Those mails will stay in the queue for 5 days, and further attempts will be made to deliver them. If delivery is not successful by then, they'll be returned to the sender. You can also purge them manually with postsuper.
Ah, ok.

Is the number of days they stay in the queue configurable, to make it longer or shorter? And can they be dropped instead of returned to the sender?
 
Old 10-23-2007, 06:48 PM   #8
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Yes, the queue life time is configurable using maximal_queue_lifetime. There are many parameters that are configurable. To see all of them:
Code:
man 5 postconf
I don't believe you can change the action taken on expired mail.
 
Old 10-23-2007, 07:02 PM   #9
mikelbeck
LQ Newbie
 
Registered: Sep 2007
Location: Lawn Guyland, Noo Yawk
Distribution: CentOS 5.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
Yes, the queue life time is configurable using maximal_queue_lifetime. There are many parameters that are configurable. To see all of them:
Code:
man 5 postconf
I don't believe you can change the action taken on expired mail.
Excellent info there. Thanks for the help!
 
Old 10-24-2007, 02:43 AM   #10
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You're welcome.
 
  


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
HELP! check for corrupted mail drop. POP3 what now ? saavik Linux - Networking 3 10-23-2009 01:21 AM
postfix - host unknown doronunu Linux - Software 2 07-26-2006 06:34 PM
how can postfix redirect unknown users mail to postmaster LinuxLover Linux - Software 1 05-16-2006 08:54 AM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 09:12 PM
Postfix sending mail for unknown users to other server? Phaethar Linux - Software 2 03-18-2004 01:33 PM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
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