Question : Modify sendmail queued mail management

I am running sendmail Version 8.13.1 on Centos 4.6 (Final).

Presently my sendmail is running on default configuration, so if I try to send an email and any email is not delivered, sendmail keeps that mail in queue for 5 days and keep retrying after certain interval to send that email and after 5 days sendmail bounce that email if still undelivered.

I need to configure in a way so that instead of keeping undelivered email for 5 days in a queue, sendmail should keep that email only for 2 days.  If for retrying to send email for 2 days sendmail fails to deliver it, it should bounce the email to the sender.

My sendmail configuration file is attached with this question.

Please suggest, how to achieve this.

Answer : Modify sendmail queued mail management

Edit the sendmail.cf file,

look for the following variables

O Timeout.queuereturn=5d

Change the "5d" to "2d" that will set it to a two day bounce.

Remember to reload sendmail after the changes is made
Random Solutions  
 
programming4us programming4us