Page 1 of 1

Outgoing Mail Question

Posted: Fri May 26, 2006 5:59 am
by RogerMaynard
I am new to Linux and new to Scalix having decided I have had enough of Microsoft Exchange Server

We are on a dial-up broadband (ie NOT a fixed IP) as a result of this SOME domains reject our mail out of hand.

Is there a way of changing the way mail to certain domains can be delivered via a different SMTP server?

With exchange it is a matter of creating a different Outgoing Connector and setting the scope (or domain list) .

Is there any way of achieving this as I would like the majority of my mail to be delivered directly via DNS rather than via my ISP outgoing mail server.

I realise that having a fixed IP will sort this out and I will probably do this, but in the meantime is there a way to overcome the problem

Many thanks in advance for any assistance

Roger

Posted: Fri May 26, 2006 6:11 am
by Valerion
You can achieve this with the mailertable in sendmail.

Code: Select all

cd /etc/mail
vi mailertable
make
service sendmail restart


The format of the file is as follows:

Code: Select all

domain.com<TAB>esmtp:dest.host.domain.com


or

Code: Select all

domain.com<TAB>esmtp:[dest.host.domain.com]


The first method will do a MX lookup first, while the second will not.

Posted: Fri May 26, 2006 6:29 am
by RogerMaynard
Many thanks for that response...

I take it that sendmail reads down the list and anything NOT specified with take the "default" ie Direct Delivery?

Rgrds

Roger
Somerset UK

Posted: Fri May 26, 2006 6:32 am
by Valerion
For anything not specified in the mailertable it uses the DS parameter from sendmail.cf. If that is empty, it delivers directly, otherwise mail gets sent to the server specified.

Code: Select all

DSsmtp.your-isp.com

Posted: Fri May 26, 2006 7:19 am
by RogerMaynard
Hit the next problem! My outgoing SMTP on my ISP needs Authentication!!

Another thread search :-/

Thanks again for previous help..

Roger