×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

defining maximum number of delivery attempts

defining maximum number of delivery attempts

defining maximum number of delivery attempts

(OP)
Hi everyone.


I'm wondering if there is a way to define in the sendmail.mc or sendmail.cf the maximum # of delivery attempts?  While testing some mailing scripts using mutt as the MUA and sendmail as the MTA, a partition became full because sendmail kept trying to deliver mail to bogus e-mail addresses.  This is on a Red Hat EL5 mail server.

I apologize if this question has been answered, but I did not get an answer from the searches I did beforehand.  Does the mail queue settings need to be defined in a script or command line?  I would appreciate an example if this is the case.

RE: defining maximum number of delivery attempts

(OP)
Hello again.

I have a better understanding of what happened.  Bounce backs from bogus email addresses first went into /var/spool/mqueue.  After a time they went into /var/spool/clientmqueue.  Sendmail would continue to try to deliver to bogus email addresses, and consequently the clientmqueue became filled up.

I looked at my sendmail.cf and found the following UNCOMMENTED on timeout:

O Timeout.connect=1m
O Timeout.ident=0
O Timeout.queuereturn=5d
O Timeout.queuewarn=4h

Will changing any of those settings or others alleviate this problem?

Is accessing the queue and how often done at start or restart time?  such as service sendmail -q1h restart?

When I type "ps -ef | grep sendmail" I see this:

ps -ef | grep sendmail
root      2814     1  0 Jun02 ?        00:00:00 sendmail: accepting connections
smmsp     2823     1  0 Jun02 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
smmsp    13107 12623  0 13:15 ?        00:00:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
root     13406 13222  0 14:51 pts/2    00:00:00 grep sendmail

Right now those huge df files are manually removed from /var/spool/clientmqueue.  Can anyone offer a better way (either inside configuration settings or at restart of sendmail)?
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close