Re: exim with both smarthost and direct send
"Sandip" == Sandip P Deshmukh <Sandip> writes:
Sandip> Patrik Modesto wrote:
>> Hi, First: I'm using Debian testing, daily updated as my home
>> PC, exim is setup to send outgoing mail directly to MX record.
>>
Sandip> how did you do this? what is your setup? i had been
Sandip> struggling with this for ages now!
Okay, Sandip. I'll just give you the answer, and let you figure out
why it works. Hint: section 31 of the exim specification manual ;-)
lookup:
driver = lookuphost
transport = remote_smtp
ignore_target_hosts = 127.0.0.0/8
It goes in the router section.
Here is another clue:
1) Copy your /etc/exim/exim.conf file to ~/exim.conf
2) Add the above entry in the right place (start if the routers
section)
3) Run '/usr/sbin/exim -C ~/exim.conf -bt user@some.domain'
4) Run '/usr/sbin/exim -C ~/exim.conf -bt user@other.domain'
5) Do this until you get the right routing output.
If it all works, you use ~/exim.conf as the system wide exim
configuration.
For example, you should see something like this
:~$ /usr/sbin/exim -C ~/exim.test.conf -bt deshmukh@escortsmumbai.com
deshmukh@escortsmumbai.com
deliver to deshmukh@escortsmumbai.com
router = lookup, transport = remote_smtp
host mail.escortsmumbai.com [202.138.122.240] MX=10
except of course, in your case, this would be a silly route to use to
mail yourself (ah! what's that 'local_domain' thing again? Noooo...not
another thread coming on :-).
All the problems you had were related to your understanding of
networks. Not GNU/Linux. Not exim. If this does not work please
(*please*) talk to your local network guru or ISP help desk to find
out what restrictions you live under.
We're always pleased to offer assistance here on debian-user, but some
times we can't read minds.
Cheers!
Shyamal
Reply to: