[ILUG] Dynamically choosing smtp server

From: Conor Daly (conor.daly at domain met.ie)
Date: Tue 17 Sep 2002 - 09:43:33 IST


Using sendmail and queuing mail for delivery, in sendmail.cf I have

smarthost smtp.iol.ie

or whatever. I do

sendmail -q

to flush the queue when connected. I want to be able to dynamically
switch between smtp servers depending on who I'm connected to. Can
I do something like

smarthost smtp.iol.ie
smarthost smtp.oceanfree.net

and have sendmail use whichever accepts the mail?

Alternatively, the kludge works something like this:

1. Dialup iol
2. ln -s sendmail_iol.cf sendmail.cf
3. sendmail -q

a. Dialup Oceanfree
b. ln -s sendmail_oceanfree.cf sendmail.cf
c. sendmail -q

Can't remember which version of sendmail I'm using just now but it's around
the version shipped with RH7.2

Conor

-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064276 Fax +353 1 8064247
------------------------------------
bofh.irmet.ie running RedHat Linux  9:40am  up 4 days, 22:22,  2 users,  load average: 0.00, 0.03, 0.07
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept 
for the presence of computer viruses.
**********************************************************************


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:53 GMT