Re: [ILUG] Dynamically choosing smtp server

From: ger (gerdono at domain eircom.net)
Date: Tue 17 Sep 2002 - 22:22:03 IST


You might try
sendmail -q -C /etc/sendmail.iol.cf
sendmail -q -C /etc/sendmail.oceanfree.cf

Also Sendmail refuses to run as root if an alternate configuration file is
specified.

Regards Ger

At 09:46 17/09/2002 +0000, Conor Daly wrote:
>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:55 GMT