FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-30-2007, 06:38 AM
"Indunil Jayasooriya"
 
Default How to delete mails in the mailq in ONE DAY -- POSTFIX

I am runnig posfix on Centos 4.4 as a Mailgateway. It only accepts mails for domains and then forwards mails to Lotus domino Server.

All clients sends outgoing mails to that Lotus domino Server. Then , That Lotus Domino Server sends mails to Postfix mailgateway. This postfix mailgateway sends mails to all the destinations. But, This Postfix mailgateway has about 150 messages in the mailq. Some are unwanted mails. I think they keep trying until 5 days old. I want decrease it to ONE DAY.




In Sendmail, this can be done by editing sendmail.mc* as below.


(`confTO_QUEUERETURN', `5d')dnl

changing above line to below line

(`confTO_QUEUERETURN', `1d')dnl



How Can I do it in Postfix?


ANY IDEA?




O Timeout.queuereturn=5d


--
Thank you
Indunil Jayasooriya

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2007, 06:42 AM
Barry Brimer
 
Default How to delete mails in the mailq in ONE DAY -- POSTFIX

On Fri, 30 Nov 2007, Indunil Jayasooriya wrote:


I am runnig posfix on Centos 4.4 as a Mailgateway. It only accepts mails for
domains and then forwards mails to Lotus domino Server.

All clients sends outgoing mails to that Lotus domino Server. Then , That
Lotus Domino Server sends mails to Postfix mailgateway. This postfix
mailgateway sends mails to all the destinations. But, This Postfix
mailgateway has about 150 messages in the mailq. Some are unwanted mails. I
think they keep trying until 5 days old. I want decrease it to ONE DAY.



In Sendmail, this can be done by editing sendmail.mc as below.


(`confTO_QUEUERETURN', `5d')dnl

changing above line to below line

(`confTO_QUEUERETURN', `1d')dnl


How Can I do it in Postfix?


It should be one of these:

bounce_queue_lifetime = 1d
maximal_queue_lifetime = 1d
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2007, 06:52 AM
"Indunil Jayasooriya"
 
Default How to delete mails in the mailq in ONE DAY -- POSTFIX

It should be one of these:

bounce_queue_lifetime = 1d

maximal_queue_lifetime = 1d
Hi,* Thanks for your quick answer.

I think it is

maximal_queue_lifetime = 1d

I got it from below URLs.


http://www.postfix.org/rate.html
maximal_queue_lifetime (default: 5 days) How
long a message stays in the queue before it is sent back as
undeliverable. Specify 0 for mail that should be returned
immediately after the first unsuccessful delivery attempt

http://archives.neohapsis.com/archives/postfix/2000-10/1271.html





--
Thank you
Indunil Jayasooriya

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2007, 12:05 PM
Ugo Bellavance
 
Default How to delete mails in the mailq in ONE DAY -- POSTFIX

Indunil Jayasooriya wrote:


I am runnig posfix on Centos 4.4 as a Mailgateway. It only accepts mails
for domains and then forwards mails to Lotus domino Server.


Ok

All clients sends outgoing mails to that Lotus domino Server. Then ,
That Lotus Domino Server sends mails to Postfix mailgateway. This
postfix mailgateway sends mails to all the destinations. But, This
Postfix mailgateway has about 150 messages in the mailq. Some are
unwanted mails. I think they keep trying until 5 days old. I want
decrease it to ONE DAY.


These messages are not harmfull, and you should keep your setting to 5
days. You'll thank you when your domino server stops accepting messages
for some reasons for 25 hours or more... it can happen...


Ugo

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2007, 09:01 PM
mouss
 
Default How to delete mails in the mailq in ONE DAY -- POSTFIX

Indunil Jayasooriya wrote:
> I am runnig posfix on Centos 4.4 as a Mailgateway. It only accepts mails for
> domains and then forwards mails to Lotus domino Server.
>
> All clients sends outgoing mails to that Lotus domino Server. Then , That
> Lotus Domino Server sends mails to Postfix mailgateway. This postfix
> mailgateway sends mails to all the destinations. But, This Postfix
> mailgateway has about 150 messages in the mailq. Some are unwanted mails. I
> think they keep trying until 5 days old. I want decrease it to ONE DAY.
>

do not accept mail to inexistent addresses. implement proper recipient
validation. if you can't share the list of users with postfix, then use
reject_unverified_recipient (only for recipients of your domains).

accept then bounce (backscatter) is no more acceptable.


>
>
> In Sendmail, this can be done by editing sendmail.mc as below.
>
>
> (`confTO_QUEUERETURN', `5d')dnl
>
> changing above line to below line
>
> (`confTO_QUEUERETURN', `1d')dnl
>
>
> How Can I do it in Postfix?
>
>
> ANY IDEA?
>
>
>
>
> O Timeout.queuereturn=5d
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 12:53 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org