fn_online at arcor.de
2009-Jan-16 11:08 UTC
[Pkg-exim4-users] Route only outgoing mails to smarthost
Hi,
I''m having a problem with my exim configuration. I''ll try to
explain what''s going on as good as I can.
Let''s call my server "exim.mydomain.com". There''s
also the domain''s standard mailserver ("mail.mydomain.com").
Both servers are supposed to handle mails to *@mydomain.com in a certain way.
The "mail.mydomain.com" only handles mails to certain addresses (e.g.
a at mydomain.com) and routes everything else to my
"exim.mydomain.com".
My "exim.mydomain.com" only handles mails to some other addresses
(e.g. b at mydomain.com), every other address is supposed be rejected (e.g. c at
mydomain.com).
All outgoing mail is supposed to be routed to the mailserver (smarthost).
My config:
dc_eximconfig_configtype=''satellite''
dc_other_hostnames=''mydomain.com''
dc_local_interfaces=''''
dc_readhost=''mydomain.com ''
dc_relay_domains=''''
dc_minimaldns=''false''
dc_relay_nets=''''
dc_smarthost=''mail.mydomain.com''
CFILEMODE=''644''
dc_use_split_config=''true''
dc_hide_mailname=''true''
dc_mailname_in_oh=''true''
dc_localdelivery=''mail_spool''
It''s working quite well. I get the mails going to b at mydomain.com and
the mails to c at mydomain.com get an undeliverable message (#550 Unrouteable
address).
The problem appears when I try to send mails. Mails to other domains work fine.
But mails to a at mydomain.com can''t be routed.
>exim4 -bt a at mydomain.com
R: system_aliases for a at mydomain.com
a@ mydomain.com is undeliverable:
Unrouteable address
I''ve tried a few things to solve this, like setting mydomain.com as a
relay domain or changing the smarthost router to allow local_domain. With these
changes the mails to a at mydomain.com get routed, but in both cases the
incoming mails to c at mydomain.com will also be routed back to the smarthost
(causing a loop between my exim server and the smarthost, because none of them
wants to handle this address).
Is there some way to configure exim to route the outgoing mails to the
smarthost, but still reject (undeliverable) the incoming mails to c at
mydomain.com?
Thanks
Frank
Neil S. Briscoe
2009-Jan-16 12:37 UTC
[Pkg-exim4-users] Route only outgoing mails to smarthost
Hi First, I would change your dc_other_hostnames to :- dc_other_hostnames=''exim.mydomain.com:mydomain.com'' Then run invoke_rc.d exim4 restart This will mean that your Exim will accept mail both to its FQDN as well as the domain. Now in /etc/aliases make an entry a: a at mail.mydomain.com You should make similar arrangements on mail.mydomain.com such that it accepts mail for its FQDN as well as the domain, and set up an alias for b pointing to b at exim.mydomain.com You can continue writing mails to a at mydomain.com and Exim will do the work of re-writing and delivering it to the user on mail.mydomain.com, likewise they should be able to address you at b at mydomain.com and have it delivered to you at b at exim.mydomain.com Regards Neil fn_online at arcor.de wrote:> Hi, > > I''m having a problem with my exim configuration. I''ll try to explain what''s going on as good as I can. > Let''s call my server "exim.mydomain.com". There''s also the domain''s standard mailserver ("mail.mydomain.com"). > Both servers are supposed to handle mails to *@mydomain.com in a certain way. > The "mail.mydomain.com" only handles mails to certain addresses (e.g. a at mydomain.com) and routes everything else to my "exim.mydomain.com". > My "exim.mydomain.com" only handles mails to some other addresses (e.g. b at mydomain.com), every other address is supposed be rejected (e.g. c at mydomain.com). > All outgoing mail is supposed to be routed to the mailserver (smarthost). > > My config: > > dc_eximconfig_configtype=''satellite'' > dc_other_hostnames=''mydomain.com'' > dc_local_interfaces='''' > dc_readhost=''mydomain.com '' > dc_relay_domains='''' > dc_minimaldns=''false'' > dc_relay_nets='''' > dc_smarthost=''mail.mydomain.com'' > CFILEMODE=''644'' > dc_use_split_config=''true'' > dc_hide_mailname=''true'' > dc_mailname_in_oh=''true'' > dc_localdelivery=''mail_spool'' > > It''s working quite well. I get the mails going to b at mydomain.com and the mails to c at mydomain.com get an undeliverable message (#550 Unrouteable address). > The problem appears when I try to send mails. Mails to other domains work fine. But mails to a at mydomain.com can''t be routed. > >> exim4 -bt a at mydomain.com > R: system_aliases for a at mydomain.com > a@ mydomain.com is undeliverable: > Unrouteable address > > I''ve tried a few things to solve this, like setting mydomain.com as a relay domain or changing the smarthost router to allow local_domain. With these changes the mails to a at mydomain.com get routed, but in both cases the incoming mails to c at mydomain.com will also be routed back to the smarthost (causing a loop between my exim server and the smarthost, because none of them wants to handle this address). > > Is there some way to configure exim to route the outgoing mails to the smarthost, but still reject (undeliverable) the incoming mails to c at mydomain.com? > > Thanks > Frank > > > _______________________________________________ > Pkg-exim4-users mailing list > Pkg-exim4-users at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users > > ------------------------------------------------------------------------------------ > Scanned for viruses, spam and offensive content by CensorNet MailSafe > > Try CensorNet free for 14 days. Provide Internet access on your terms. > Visit www.censornet.com for more information. > >-- Neil Briscoe CensorNet Ltd - professional & affordable Web & E-mail filtering neil.briscoe at censornet.com web: www.censornet.com tel: 0845 230 9592 / fax: 0845 230 9591 / main office: 0845 230 9590 snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK. MSN: nbriscoeuk at hotmail.co.uk CensorNet Ltd is a registered company in England & Wales No. 05518629 VAT registration number 901-2048-78 Any views expressed in this email communication are those of the individual sender, except where the sender specifically states them to be the views of a member of CensorNet Ltd. CensorNet Ltd does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors or interference. ------------------------------------------------------------------------------------ Scanned for viruses, spam and offensive content by CensorNet MailSafe Try CensorNet free for 14 days. Provide Internet access on your terms. Visit www.censornet.com for more information.