Change port for sendmail smarthost

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Jan 8 14:07:07 PST 2004


On Thu, Jan 08, 2004 at 10:47:26PM +0100, Marc UBM Bocklet wrote:

> I've googled around and looked at www.sendmail.org and the handbook, but
> was unable to find anything regarding that subject.
> 
> My problem is that the smtp-server at my sendmail smarthost is
> listening on port 697 instead of 25 and i need a way to tell sendmail
> that.
> 
> I experimentally tried 
> 
> define(`SMART_HOST', `smtp-server.com:697')
> 
> but that didn't work.
> 
> Any help is appreciated :-)

Try:

    define(`RELAY_MAILER_ARGS', `IPC $h 697')dnl

This overrides the 'RELAY' mailer (which should be what gets used when
you connect to your smart host) to connect on port 697.  If necessary
you can use the mailertable functionality to force all messages to the
smart host to use the 'relay' mailer:

    .		relay:smtp-server.com

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040108/c14e6f17/attachment.bin


More information about the freebsd-questions mailing list