Nevermind that, the problem is back. Changing names and IPs to protect
the, mmmh..., me, this is my config:

# grep -R "example.com" /etc/courier/*
Binary file /etc/courier/aliases.dat matches
/etc/courier/defaultdomain:mozart.example.com
/etc/courier/dsnfrom:[EMAIL PROTECTED]
Binary file /etc/courier/esmtpacceptmailfor.dat matches
/etc/courier/esmtpacceptmailfor.dir/webadmin:bach.example.com
/etc/courier/esmtpacceptmailfor.dir/webadmin:mozart.example.com
/etc/courier/esmtpacceptmailfor.dir/webadmin:example.com

and when I try to send emails to those three domains in that server
(which is mozart) I get the following:

$ telnet mozart.example.com 25
Trying 1.1.1.1...
Connected to mozart.example.com.
Escape character is '^]'.
220 mozart ESMTP
helo mozart.example.com
250 mozart Ok.
mail from: <[EMAIL PROTECTED]>
250 Ok.
rcpt to: <[EMAIL PROTECTED]>
556 Address unavailable.
rcpt to: <[EMAIL PROTECTED]>
250 Ok.
rcpt to: <[EMAIL PROTECTED]>
250 Ok.

That is, [EMAIL PROTECTED] gives me the 556 Address unavailable, but not
the other two. The logs show this:

Nov 13 02:26:01 mozart courieresmtpd: started,ip=[::ffff:2.2.2.2]
Nov 13 02:26:37 mozart courieresmtpd:
error,relay=::ffff:2.2.2.2,from=<[EMAIL PROTECTED]>,to=<[EMAIL PROTECTED]>: 556 
Address unavailable.

Any ideas? Just in case it has anything to do, the other server, bach,
gladly receives mail for the three domains, example.com,
bach.example.com and mozart.example.com; but as they are local domains,
the mail is just delivered.

On Thu, 2008-11-13 at 07:05 +0000, J. Pablo" Fernández wrote:
> Hello Marcus,
> 
> Thanks from the information, as I plan to use some Python scripts
> latter; but for now, I don't have any Python script. I didn't notice any
> errors prior to that one, but I did the experiment again to gather the
> logs exactly as they were and, to my surprise, it just worked. I'm
> puzzled, not only that started to work, but the main mailserver is
> claiming "relly denied" for mails sent to its own name.
> 
> Thanks.
> 
> On Thu, 2008-11-13 at 00:11 +0100, Marcus Ilgner wrote:
> > Hi,
> > 
> > On Wed, Nov 12, 2008 at 9:37 PM, J. Pablo Fernández <[EMAIL PROTECTED]> 
> > wrote:
> > > Hello.
> > >
> > > I've configured a courier to receive email for another courier as a
> > > backup. When testing it I get the error:
> > >  556 Address unavailable.
> > > What does the error mean here?
> > >
> > > Does courier perform some kind of DNS check for the MX records (that is
> > > not set yet)?
> > > --
> > > J. Pablo Fernández <[EMAIL PROTECTED]> http://pupeno.com
> > >
> > 
> > incidentally I stumpled upon the same problem today, too. Check for
> > backscatter suppression, i.e. if there was another error before this
> > one.
> > 
> > In my case I found that the dialback module in pythonfilter was having
> > problems with receiving mails being relayed from my backup MX.
> > Had to disable it for now. In case anybody has seen this message
> > before, it was: 400 SMTP class exception during connect
> > 
> > I took a cursory glance at the source code I found that it splits the
> > source address into user and domain and then tries to connect to the
> > MX of the resulting domain.
> > Quite straightforward, really. Yet, in my case, it looks like every
> > mail coming in from my backup MX produced the aforementioned error
> > message while every mail being received directly came through without
> > problems.
> > Row 250 in dialback.py was the only place where I found this error
> > message referenced. Any hints?
> > And I better mention that sending mail from this server and IP works
> > fine, too, so it's not the firewall blocking outgoing SMTP.
> > 
> > Best regards
> > Marcus
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ courier-users mailing list 
> [email protected] Unsubscribe: 
> https://lists.sourceforge.net/lists/listinfo/courier-users
-- 
J. Pablo Fernández <[EMAIL PROTECTED]> http://pupeno.com

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to