Backup Relay

View: New views
5 Messages — Rating Filter:   Alert me  

Backup Relay

by Mrozone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have 2 courier servers.

1 server (mx1.domain.com) receives all email to deliver locally. The other server i want to configure as a backup relay for email that can not be delivered within the warntime.

in backuprelay file i have  mx2.domain.com
in warntime i have 10m

When a email comes into mx1 it tries to deliver, then after 10m tries to send it to mx2. The problem is mx1 strips the domain off the rcpt address. For example mx1 trying to send an email to mx2.


Oct  7 08:02:31 mx21 courieresmtpd: error,relay=::ffff:24.116.0.82,from=<emailaddress@...>,to=<admin>: 513 Syntax error.
Oct  7 08:02:31 mx21 courieresmtpd: error,relay=::ffff:24.116.0.82,msg="502 ESMTP command error",cmd: DATA

Though on mx1 it shows

Oct  7 07:42:02 mail11 courieresmtp: id=0194D0DE.48EAF666.00006390,from=<emailaddress@...>,addr=<admin@...>: 513 Syntax error.
Oct  7 07:42:02 mail11 courieresmtp: id=0194D0DE.48EAF666.00006390,from=<emailaddress@...>,addr=<admin@...>,status: failure


Why is the domain being stripped?

Thanks.
William

-------------------------------------------------------------------------
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
courier-users@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Re: Backup Relay

by Marcus Ilgner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Tue, Oct 7, 2008 at 5:11 PM, MrOzone <mrozone@...> wrote:
> I have 2 courier servers.
>
> 1 server (mx1.domain.com) receives all email to deliver locally. The other
> server i want to configure as a backup relay for email that can not be
> delivered within the warntime.

not sure if it helps, but I have a similar configuration and I didn't
have to configure any special parameters in Courier. Simply copying
the configuration to the backup MX did the trick.

> in backuprelay file i have  mx2.domain.com
> in warntime i have 10m

I never heard about these files and didn't see them mentioned in the
documentation anywhere?

> When a email comes into mx1 it tries to deliver, then after 10m tries to
> send it to mx2. The problem is mx1 strips the domain off the rcpt address.
> For example mx1 trying to send an email to mx2.
>
>
> Oct  7 08:02:31 mx21 courieresmtpd:
> error,relay=::ffff:24.116.0.82,from=<emailaddress@...>,to=<admin>:
> 513 Syntax error.
> Oct  7 08:02:31 mx21 courieresmtpd: error,relay=::ffff:24.116.0.82,msg="502
> ESMTP command error",cmd: DATA
>
> Though on mx1 it shows
>
> Oct  7 07:42:02 mail11 courieresmtp:
> id=0194D0DE.48EAF666.00006390,from=<emailaddress@...>,addr=<admin@...>:
> 513 Syntax error.
> Oct  7 07:42:02 mail11 courieresmtp:
> id=0194D0DE.48EAF666.00006390,from=<emailaddress@...>,addr=<admin@...>,status:
> failure
>
>
> Why is the domain being stripped?
>
> Thanks.
> William

Did you make any other special changes to the MTA configuration on
your backup MX?

HTH
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
courier-users@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Re: Backup Relay

by Mrozone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Wed, Oct 8, 2008 at 7:52 AM, Marcus Ilgner <marcus.ilgner@...> wrote:
Hi,

On Tue, Oct 7, 2008 at 5:11 PM, MrOzone <mrozone@...> wrote:
> I have 2 courier servers.
>
> 1 server (mx1.domain.com) receives all email to deliver locally. The other
> server i want to configure as a backup relay for email that can not be
> delivered within the warntime.

not sure if it helps, but I have a similar configuration and I didn't
have to configure any special parameters in Courier. Simply copying
the configuration to the backup MX did the trick.

    The servers are configured the exact same way.  That is why im confused with why this happens.  Could it be because our mx records point to a 3rd party spam filtering? 

By the way , I am using courier-0.58.0-1 on CentOS 5.1.


> in backuprelay file i have  mx2.domain.com
> in warntime i have 10m

I never heard about these files and didn't see them mentioned in the
documentation anywhere?
   
    From http://www.courier-mta.org/courier.html

backuprelay

This file contains one line, containing a name of a machine where mail will be rerouted if it cannot be immediately delivered. Spaces are not allowed in this file.

Mail gets rerouted if it cannot be delivered after the time interval specified by the warntime configuration file. When backuprelay is provided a delayed delivery status notification will NOT be generated. The message will be rerouted even if the recipient's delivery status notification setting does not include a delayed notification request.

This feature is intended for use by relays that handle large quantities of mail, where you don't want to accumulate a large mail queue for unreachable mail servers. Please note that ALL undeliverable mail will be rerouted in this fashion. Even if the recipient of a message is a local recipient - and the recipient's mail filter is rejecting the message with a temporary error code - the message will still be rerouted if it's undeliverable after the specified amount of time.

Although currently SMTP is the only meaningful application for this feature, Courier is a protocol-independent mail server, and the backup relay function can be extended to other protocols, as they become available.

Multiple backup relays can be used by simply assigning multiple IP addresses to the same machine name. Note that Courier checks for both MX and A records for the machine specified in this configuration file.


warntime

warntime specifies an amount of time in the same format as queuetime. If a message still has not been delivered after this period of time, Courier sends a warning message (a "delayed" Delivery Status Notification) to the sender. If warntime is missing, Courier sets warntime to four hours.


 


> When a email comes into mx1 it tries to deliver, then after 10m tries to
> send it to mx2. The problem is mx1 strips the domain off the rcpt address.
> For example mx1 trying to send an email to mx2.
>
>
> Oct  7 08:02:31 mx21 courieresmtpd:
> error,relay=::ffff:24.116.0.82,from=<emailaddress@...>,to=<admin>:
> 513 Syntax error.
> Oct  7 08:02:31 mx21 courieresmtpd: error,relay=::ffff:24.116.0.82,msg="502
> ESMTP command error",cmd: DATA
>
> Though on mx1 it shows
>
> Oct  7 07:42:02 mail11 courieresmtp:
> id=0194D0DE.48EAF666.00006390,from=<emailaddress@...>,addr=<admin@...>:
> 513 Syntax error.
> Oct  7 07:42:02 mail11 courieresmtp:
> id=0194D0DE.48EAF666.00006390,from=<emailaddress@...>,addr=<admin@...>,status:
> failure
>
>
> Why is the domain being stripped?
>
> Thanks.
> William

Did you make any other special changes to the MTA configuration on
your backup MX?

HTH
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
courier-users@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Re: Backup Relay

by Ale2008 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

MrOzone wrote:
>      > I have 2 courier servers.
>      >
>      > 1 server (mx1.domain.com <http://mx1.domain.com>) receives all
>     email to deliver locally. The other
>      > server i want to configure as a backup relay for email that can
>     not be
>      > delivered within the warntime.
>
> By the way , I am using courier-0.58.0-1 on CentOS 5.1.

Dunno why the domain is not transmitted, nor why the receiving server
doesn't just add it. The backup relay should be a transport just like
any other. Thus, up to bugs, the answer should be in the locals vs.
hosted domains, acceptmailfor, and MX settings. Perhaps it would be
helpful if you post some plain actual data about that...

















































-------------------------------------------------------------------------
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
courier-users@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Re: Backup Relay

by Sam Varshavchik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

MrOzone writes:

> When a email comes into mx1 it tries to deliver, then after 10m tries to
> send it to mx2. The problem is mx1 strips the domain off the rcpt address.
> For example mx1 trying to send an email to mx2.
>
>
> Oct  7 08:02:31 mx21 courieresmtpd:
> error,relay=::ffff:<URL:http://24.116.0.82>24.116.0.82,from=<<URL:mailto:em
> ailaddress@...>emailaddress@...>,to=<admin>: 513
> Syntax error.
> Oct  7 08:02:31 mx21 courieresmtpd:
> error,relay=::ffff:<URL:http://24.116.0.82>24.116.0.82,msg="502 ESMTP
> command error",cmd: DATA
Something is broken with your admin account. Mail delivery to the admin
account keeps failing with a temporary error, so the message remains in the
queue. This results in an attempt to forward the stuck message to the backup
relay, which fails.

Courier needs to be fixed not to do this for mail addressed to local
mailboxes, but your real problem is your broken admin account. You stopped
reading your maillog too soon. Scroll back up, and find out what exactly is
broken with your admin account.



-------------------------------------------------------------------------
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
courier-users@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

attachment0 (204 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price!