resend email from Sendmail

Posted on 2003-03-12
Medium Priority
Last Modified: 2013-12-15
with sendmail server install in Redhat 8, if sendmail server was failure to
send email to the destination this moment, then when sendmail server will
send it again ? Is it possible to change the time about retry to send
failure email?
Question by:erase015
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 15

Accepted Solution

samri earned 225 total points
ID: 8118059
hi erase015,

It will depend on how you run sendmail in the first place;

sendmail -bd -q1h

will had sendmail running as daemon (in the backgroud), and process the queue every 1 hour.  That means, retransmission will be attempted avery hour.

And take a look at:

O Timeout.queuewarn=4h
O Timeout.queuereturn=5d

On my Rh7.2 (sendmail 8.12.x) there are a bunch of timeout setting;
# timeouts (many of these)
#O Timeout.initial=5m
O Timeout.connect=1m
#O Timeout.iconnect=5m
#O Timeout.helo=5m
#O Timeout.mail=10m
#O Timeout.rcpt=1h
#O Timeout.datainit=5m
#O Timeout.datablock=1h
#O Timeout.datafinal=1h
#O Timeout.rset=5m
#O Timeout.quit=2m
#O Timeout.misc=2m
#O Timeout.command=1h
#O Timeout.ident=5s
#O Timeout.fileopen=60s
#O Timeout.control=2m
O Timeout.queuereturn=5d
#O Timeout.queuereturn.normal=5d
#O Timeout.queuereturn.urgent=2d
#O Timeout.queuereturn.non-urgent=7d
O Timeout.queuewarn=4h
#O Timeout.queuewarn.normal=4h
#O Timeout.queuewarn.urgent=1h
#O Timeout.queuewarn.non-urgent=12h
#O Timeout.hoststatus=30m
#O Timeout.resolver.retrans=5s
#O Timeout.resolver.retrans.first=5s
#O Timeout.resolver.retrans.normal=5s
#O Timeout.resolver.retry=4
#O Timeout.resolver.retry.first=4
#O Timeout.resolver.retry.normal=4


Expert Comment

ID: 8126763
By default it will retry every i hour . you can set it by the folowing command.

sendmail -q[time]
  Process saved messages in the queue at given intervals.  If time is  omitted,  process the queue once.  Time is given as a tagged number, with `s' being seconds, `m' being minutes (default), `h' being  hours, `d' being days, and `w' being weeks.  For example, `-q1h30m' or `-q90m' would both set  the  timeout  to  one  hour thirty  minutes.   By  default,  sendmail  will run in the back-ground.  This option can be used safely with -bd.

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month7 days, 20 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question