For some reason (masochist) I have decided to try out exim. This is
the how-to that I was using
for reference.
[login to view URL]
I think there are a couple issues here. When sending inbound to a
virtual domain I get this bounce back.
------------------
Technical details of permanent failure:
TEMP_FAILURE: SMTP Error (state 9): 451 Temporary local problem -
please try later
------------------
I can send mail out to my gmail account.
------------------
mail:/# mail deeperror at [login to view URL]
Subject: Test
Test
.
Cc:
mail:/#
------------------
When the mail sends I see this in /var/log/exim4/mainlog.
------------------
2006-11-03 09:30:59 1Gg10V-0002ur-76 SA: Debug: SAEximRunCond expand
returned: '1'
2006-11-03 09:30:59 1Gg10V-0002ur-76 SA: Debug: check succeeded, running spamc
2006-11-03 09:30:59 1Gg10V-0002ur-76 SA: Action: scanned but message
isn't spam: score=-2.0 required=5.0 (scanned in 0/0 secs | Message-Id:
E1Gg10V-0002ur-76 at [login to view URL]). From <root@> (local) for
deeperror at [login to view URL]
2006-11-03 09:30:59 1Gg10V-0002ur-76 <= root@ U=root P=local S=652
2006-11-03 09:31:01 1Gg10V-0002ur-76 => deeperror at [login to view URL]
R=dnslookup T=remote_smtp H=[login to view URL] [[login to view URL]]
2006-11-03 09:31:01 1Gg10V-0002ur-76 Completed
------------------
The mail is received in my gmail inbox. But doesn't have the sender
domain name.
------------------
X-Gmail-Received: 8cbf05e46f4434df616214e9044cfeb897b5cf78
Delivered-To: deeperror at [login to view URL]
Return-Path: <root@>
Received: from [login to view URL] ([login to view URL] [[login to view URL]])
by [login to view URL] with ESMTP id w38si1039892pyg.[login to view URL];
Fri, 03 Nov 2006 07:31:01 -0800 (PST)
Received-SPF: fail
Received: from root by [login to view URL] with local (Exim 4.50)
id 1Gg10V-0002ur-76
for deeperror at [login to view URL]; Fri, 03 Nov 2006 09:30:59 -0600
To: deeperror at [login to view URL]
Message-Id: <E1Gg10V-0002ur-76 at mail.server.com>
From: root <root@>
Date: Fri, 03 Nov 2006 09:30:59 -0600
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: root@
Subject: Test
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on [login to view URL]
X-Spam-Level:
X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,AWL
autolearn=ham version=3.0.3
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on [login to view URL])
Test
------------------
It seems that the domain names are not getting added to the mail header?
Others have suggested that my hostname is not setup properly on the box.
mail:/# hostname
[login to view URL]
mail:/# hostname -f
[login to view URL]
The next issue is probably related to the above. Once it gets fixed I
think this one will work itself out, but it could add some more info
as to what is happening here.
When I try to send to a local mail user I get the following errors.
------------------
mail:/# exim4 -bt sarge
R: dnslookup for sarge@
sarge@ is undeliverable:
mail domain "" is syntactically invalid
------------------
mail:/home/sarge# mail sarge
Subject: Test 2
Test 2
.
Cc:
mail:/home/sarge#
------------------
2006-11-03 09:36:41 1Gg161-0002uy-Sm SA: Debug: SAEximRunCond expand
returned: '1'
2006-11-03 09:36:41 1Gg161-0002uy-Sm SA: Debug: check succeeded, running spamc
2006-11-03 09:36:42 1Gg161-0002uy-Sm SA: Action: scanned but message
isn't spam: score=-0.9 required=5.0 (scanned in 1/1 secs | Message-Id:
E1Gg161-0002uy-Sm at [login to view URL]). From <root@> (local) for sarge@
2006-11-03 09:36:42 1Gg161-0002uy-Sm <= root@ U=root P=local S=643
2006-11-03 09:36:42 1Gg161-0002uy-Sm ** sarge@: mail domain "" is
syntactically invalid
2006-11-03 09:36:42 1Gg162-0002v1-3e Error while reading message with
no usable sender address (R=1Gg161-0002uy-Sm): at least one malformed
recipient address: root@ - domain missing or malformed
2006-11-03 09:36:42 1Gg161-0002uy-Sm Process failed (1) when writing
error message to root@ (frozen)
------------------
My configuration in /etc/exim4/[login to view URL]
------------------
dc_eximconfig_configtype='none'
dc_other_hostnames='[login to view URL]'
dc_local_interfaces='[login to view URL]'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
----------------------
Need some assistance with getting the above issues worked out along with some documenation on setting up virtual hosts to accept e-mail and add users for a vhost in the future.