Hello ALUG,
I mentioned this on #alug the other day, but I thought I'd just
check to see if anyone else has any ideas regarding it - especially
as I can go into more detail here.
My mail setup on my server has broken. I'm using Exim's virtual host
method to forward mail sent to the server to a couple of different
places. In /etc/exim4/virtual I have files for the domains:
/etc/exim4/virtual
+- ariada.uea.ac.uk
+- sara.uea.ac.uk
+- studios.uea.ac.uk
which contain rules like:
admin : richard.lewis@uea.ac.uk
* : :fail: Unknown recipient. Please direct general comments to
comments@studios.uea.ac.uk
I have the necessary config in 350_exim4-config_vdom_aliases and I
have:
domainlist local_domains = @:localhost:dsearch;/etc/exim4/virtual
in 01_exim4-config_listmacrosdefs.
I've configured Exim using dpkg-reconfigure exim4-config answering
like this:
1) internet site; mail is sent and received directly using SMTP
2) System mail name: musariada.mus.uea.ac.uk
3) IP-addresses to listen on for incoming SMTP connections:
139.222.208.19
4) Other destinations for which mail is accepted: studios.uea.ac.uk;
sara.uea.ac.uk; ariada.uea.ac.uk
5) Domains to relay mail for: none
6) Machines to relay mail for: none
7) Keep number of DNS-queries minimal: no
8) Delivery method for local mail: mbox format in /var/mail/
9) Split configuration into small files? yes
When I try to send mail to, e.g., events@studios.uea.ac.uk I get the
following error in /var/log/exim4/mainlog
2007-10-08 10:07:54 no IP address found for host MAIN_RELAY_NETS
(during SMTP connection from mailgate5.uea.ac.uk [139.222.130.185])
2007-10-08 10:07:54 H=mailgate5.uea.ac.uk [139.222.130.185]
F=richardlewis@fastmail.co.uk rejected RCPT
events@studios.uea.ac.uk: Unrouteable address
and I get an "undeliverable" message from the UEA mail server (see
below).
Does anyone know why my Exim is not forwarding mail correctly? I'm
afraid I don't really understand email and consequently I don't
know exactly what's wrong here.
When a message is sent to, e.g., events@studios.uea.ac.uk, does it
go to some uea.ac.uk server first (mailgate5.uea.ac.uk?) and then
does this server attempt to begin an SMTP conversation with my
server? If so, is my server engaging with it correctly?
And why is my server rejecting mail? (/Is/ my server rejecting
mail?) Is it because it can't forward it to
richard.lewis@uea.ac.uk? If not, why not?
When I first set this up (in June, I think) I'm sure it used to
work.
Someone on #alug suggested that sending mail to canonical domain
names (which studios.uea.ac.uk is) is not a good idea? Could this
be the problem? But if it is, why do I see evidence of a connection
in my Exim log? Surely if it was not possible to send mail to CNAME
domains, it wouldn't even begin a connection?
Any information would be very much appreciated.
Cheers,
Richard
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard Lewis
http://www.richard-lewis.me.uk/
JID: ironchicken@jabber.earth.li
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+-------------------------------------------------------+
|Please avoid sending me Word or PowerPoint attachments.|
|
http://www.gnu.org/philosophy/no-word-attachments.html |
+-------------------------------------------------------+
> Return-Path: <>
> X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on aquila
> X-Spam-Level:
> X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00
> autolearn=ham version=3.2.1
> Delivered-To: unknown
> Received: from mail.messagingengine.com (66.111.4.52) by aquila
> with IMAP4; 08 Oct 2007 09:10:04 -0000
> Received: from compute1.internal (compute1.internal
> [10.202.2.41]) by store11m.internal (Cyrus v2.3.9-fmsvn12891)
> with LMTPA; Mon, 08 Oct 2007 05:07:56 -0400
> X-Sieve: CMU Sieve 2.3
> X-Resolved-to: richardlewis@fastmail.co.uk
> X-Delivered-to: richardlewis@fastmail.co.uk
> X-Mail-from:
> Received: from mx2.messagingengine.com ([10.202.2.201])
> by compute1.internal (LMTPProxy); Mon, 08 Oct 2007 05:07:56
> -0400 Received: from mailgate5.uea.ac.uk (mailgate5.uea.ac.uk
> [139.222.130.185]) by mx2.messagingengine.com (Postfix) with
> ESMTP id D97521DE10A for
richardlewis@fastmail.co.uk; Mon, 8
> Oct 2007 05:07:55 -0400 (EDT) Received: from eximuea by
> mailgate5.uea.ac.uk with local (Exim 4.50) id 1Ieoag-0003rn-Fe
> for richardlewis@fastmail.co.uk; Mon, 08 Oct 2007 10:07:54 +0100
> X-Failed-Recipients: events@studios.uea.ac.uk
> Auto-Submitted: auto-generated
> From: Mail Delivery System
Mailer-Daemon@uea.ac.uk
> To: richardlewis@fastmail.co.uk
> Subject: Mail delivery failed: returning message to sender
> Message-Id:
E1Ieoag-0003rn-Fe@mailgate5.uea.ac.uk
> Date: Mon, 08 Oct 2007 10:07:54 +0100
> X-Length: 3185
> X-UID: 1742
>
> This message was created automatically by mail delivery software.
>
> A message that you sent could not be delivered to one or more of
> its recipients. This is a permanent error. The following
> address(es) failed:
>
> events@studios.uea.ac.uk
> SMTP error from remote mailer after RCPT
> TO:
events@studios.uea.ac.uk: host musariada.mus.uea.ac.uk
> [139.222.208.19]:
> 550 Unrouteable address
>
> ------ This is a copy of the message, including all the headers.
> ------
>
> Return-path:
richardlewis@fastmail.co.uk
> Received: from [139.222.131.82] (helo=ueams4)
> by mailgate5.uea.ac.uk with esmtp (Exim 4.50)
> id 1IeoaU-0003mk-AU
> for events@studios.uea.ac.uk; Mon, 08 Oct 2007 10:07:54 +0100
> Received: from [139.222.208.38] (helo=rjl.mus.uea.ac.uk)
> by ueams4 with esmtp (Exim 4.66)
> (envelope-from
richardlewis@fastmail.co.uk)
> id 1IeoaU-00046I-6a
> for events@studios.uea.ac.uk; Mon, 08 Oct 2007 10:07:42 +0100
> From: Richard Lewis
richardlewis@fastmail.co.uk
> To: events@studios.uea.ac.uk
> Subject: TEST
> Date: Mon, 8 Oct 2007 10:07:40 +0100
> User-Agent: KMail/1.9.7
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="utf-8"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> Message-Id:
200710081007.41262.richardlewis@fastmail.co.uk
> X-UEA-Spam-Score: -2.8
> X-UEA-Spam-Level: --
> X-UEA-Spam-Flag: NO
>
> TEST
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Richard Lewis
>
http://www.richard-lewis.me.uk/
> JID: ironchicken@jabber.earth.li
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> +-------------------------------------------------------+
> |Please avoid sending me Word or PowerPoint attachments.|
> |
http://www.gnu.org/philosophy/no-word-attachments.html |
> +-------------------------------------------------------+