Page 1 of 1

smarthost works but not as expected

Posted: Mon Nov 05, 2007 6:01 am
by TCWardrobe
Hi folks, long time no see ;)

it took longer than expected but now I am about to roll out scalix CE on a small network. Now I have some small things that confuse me. One at a time:

The scalix server is inside a corporate network, no direct access to it from the outside and dynamic ip addresses are used so sendimg directly to mail recipients other than the local scalix users would not work due to RBL spamlists (error 550 iirc), no big deal, it works in general (even if fetchmail is not set up yet). I did set up a /etc/mail/authinfo and in there for every user one line. As I did this, somewhere in the process (took me a while to figure out what to do to make the changes known to scalix / the system in general, so don't remember when exactly) "make" or "omsendin" (as said, dunno) or whatever complained about duplicate entries in /etc/mail/authinfo for the smarthost I use. I tested this a day later, added another scalix user (same e-mail domain as the others) but did not provide an entry for this user in authinfo, sent a mail, tail -f /var/log/mail.log, mail sent correctly, mail arrived...
No big deal here too... for mail users with the exact same mail domain / smarthost, but what if mail users with other mail domains hosted at other service providers come into the game?

Btw. this is on Debian Etch... some glitches during install but works in general

greetings
Michael

Posted: Mon Nov 05, 2007 9:41 am
by Valerion
I am not quite following your explanation there, maybe you can clarify a little?

I gather you want to send mail out through a server that requires authentication (ISP, perhaps). In this case you just need a single entry in authinfo, for the server itself. And have the SMART_HOST in sendmail.mc, of course (or DS in sendmail.cf).

Posted: Wed Nov 07, 2007 3:34 pm
by TCWardrobe
Valerion wrote:I am not quite following your explanation there, maybe you can clarify a little?

I gather you want to send mail out through a server that requires authentication (ISP, perhaps). In this case you just need a single entry in authinfo, for the server itself. And have the SMART_HOST in sendmail.mc, of course (or DS in sendmail.cf).


that is exactly what I did... but what if some mail accounts require another smarthost? I did this once with exim not a real issue, what about sendmial there?

Posted: Thu Nov 08, 2007 8:05 am
by Valerion
On a per-domain/machine level you can set certain exclusions easily in the mailertable file. eg:

Code: Select all

domain1.com<TAB>esmtp:relay-host1.domain.com
domain2.com<TAB>esmtp:relay-host2.domain.com