Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #173047
| From | Harry Putnam <reader@newsguy.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: exim4 some config error causing error how to pinpoint |
| Date | 2016-10-01 15:40 +0200 |
| Message-ID | <snsGe-D4-15@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <sgT8t-x4-5@gated-at.bofh.it> <shpUK-6dH-15@gated-at.bofh.it> <shAQ9-54k-19@gated-at.bofh.it> <shINH-1zt-19@gated-at.bofh.it> <shX0m-2jc-17@gated-at.bofh.it> |
| Organization | Still searching... |
Liam O'Toole <liam.p.otoole@gmail.com> writes:
[...]
>> When I try to send a message from USER@HOST2 to USER@HOST1, instead of
>> just delivering to USER@HOST1 it appears to be sending that message on
>> to the gmail smtp server.
>>
>> The local lan is not a real FQDN so not suprising that the gmail
>> server cannot deliver it.... but how to prevent that local mail from
>> being sent to gmail server to start with?
>>
>>
>
> You need to tell exim4 on HOST1 that it is the 'final destination' for
> emails within your local network. If you go back through the debconf
> questions for exim4-config, you'll be asked about 'Other destinations
> for which mail is accepted'. In your case the answer should be
> '*.local.lan'. Then local emails will no longer be forwarded upstream.
> Obviously, you will need to ensure that the various local fully
> qualified domain names are resolvable, either by running your own DNS or
> maintaining /etc/host files correctly.
Thank you. That fixed HOST1. Still haven't worked out how to be able
to send mail from a user@HOST2 to a user@HOST1 (both inside home lan ).
With the setting you suggest above... mail from user@HOST2 to
user@HOST1 fails with smtp output:
sending like this:
mailx -v -s "TEST 161001_092048 d2" harry@dv.local.lan < ~/txtmsg.txt
LOG: MAIN
<= harry@d2.local.lan U=harry P=local S=442
delivering 1bqKDj-00009o-AK
R: smarthost for harry@dv.local.lan
T: remote_smtp_smarthost for harry@dv.local.lan
LOG: MAIN
** harry@dv.local.lan R=smarthost T=remote_smtp_smarthost: retry time not reached for any host after a long failure period
LOG: MAIN
<= <> R=1bqKDj-00009o-AK U=Debian-exim P=local S=1680
LOG: MAIN
Completed
delivering 1bqKDj-00009s-Hi
R: system_aliases for harry@d2.local.lan
R: userforward for harry@d2.local.lan
R: procmail for harry@d2.local.lan
R: maildrop for harry@d2.local.lan
R: lowuid_aliases for harry@d2.local.lan (UID 1000)
R: local_user for harry@d2.local.lan
T: appendfile for harry@d2.local.lan
LOG: MAIN
=> harry <harry@d2.local.lan> R=local_user T=mail_spool
LOG: MAIN
Completed
And from /var/log/exim4/mainlog:
2016-10-01 09:20:51 1bqKDj-00009o-AK <= harry@d2.local.lan U=harry P=local S=442
2016-10-01 09:20:51 1bqKDj-00009o-AK ** harry@dv.local.lan R=smarthost T=remote_smtp_smarthost: retry time not reached for any host after a long failure period
2016-10-01 09:20:51 1bqKDj-00009s-Hi <= <> R=1bqKDj-00009o-AK U=Debian-exim P=local S=1680
2016-10-01 09:20:51 1bqKDj-00009o-AK Completed
2016-10-01 09:20:51 1bqKDj-00009s-Hi => harry <harry@d2.local.lan> R=local_user T=mail_spool
2016-10-01 09:20:51 1bqKDj-00009s-Hi Completed
I think those ouputs mean that the local mail being sent from HOST2 to
HOST1 is still attempting to be sent to smtp.gmail.com (The smarthost
for HOST1)
I have HOST2 set like this in /etc/exim4/update-exim4.conf.conf:
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='d2.local.lan' # (HOST2)
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='dv.local.lan' # (HOST1)
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
Is this wrong? Is setting HOST1 as smarthost for HOST2 a mistake?
Contents of /etc/exim4/update-exim4.conf.conf on HOST1
dc_eximconfig_configtype='smarthost'
dc_other_hostnames='*.local.lan' # NOTE: This was supposed to tell
# HOST1 that mail from the local
# lan is to be delivered to local
# users... not sent to smarthost
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets='192.168.1.0/24'
dc_smarthost='smtp.gmail.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
smtp_accept_queue_per_connection=300
The attempted send from HOST2 to HOST1 does not appear in the
/var/log/exim4/mainlog on HOST1 at all.
I'm sorry to be so confused about setting this up... but am pretty
confused at this point.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
exim4 some config error causing error how to pinpoint Harry Putnam <reader@newsguy.com> - 2016-09-13 04:00 +0200
Re: exim4 some config error causing error how to pinpoint Liam O'Toole <liam.p.otoole@gmail.com> - 2016-09-13 12:30 +0200
Re: exim4 some config error causing error how to pinpoint Harry Putnam <reader@newsguy.com> - 2016-09-14 23:30 +0200
Re: exim4 some config error causing error how to pinpoint Liam O'Toole <liam.p.otoole@gmail.com> - 2016-09-15 11:10 +0200
Re: exim4 some config error causing error how to pinpoint Harry Putnam <reader@newsguy.com> - 2016-09-15 19:40 +0200
Re: exim4 some config error causing error how to pinpoint Liam O'Toole <liam.p.otoole@gmail.com> - 2016-09-16 10:50 +0200
Re: exim4 some config error causing error how to pinpoint Harry Putnam <reader@newsguy.com> - 2016-10-01 15:40 +0200
Re: exim4 some config error causing error how to pinpoint Mark Fletcher <mark27q1@gmail.com> - 2016-10-01 16:10 +0200
csiph-web