Padmanabh Padaki wrote:

I have set up two relay servers - relay1 and relay2

Relay1 or relay2 accepts the mail from clients and delivers it to the outside 
world..

What I actually want to do is this.

From client1 ------------> relay1 -------------->relay2 -----------> outside 
world.

To make this work, I added relayhost = relay2.x.x.x  to relay1 main.cf file.


In other words, the mail sent from client first goes to relay1, then relay1 
delievers to relay2 and then relay2 should deliver the mail


When I try the above configuration, the relay1 servers /var/log/syslog has this 
error


ep 12 17:18:02 rwns01 postfix/smtpd[10002]: [ID 197553 mail.info] connect from 
xxx.ecorp.gymboree.com[x.x.x.x]
Sep 12 17:18:02 rwns01 postfix/smtpd[10002]: [ID 197553 mail.info] AADC138B5: 
client=xxx.ecorp.gymboree.com[x.x.x.x]
Sep 12 17:18:02 rwns01 postfix/cleanup[10008]: [ID 197553 mail.info] AADC138B5: 
message-id=<[EMAIL PROTECTED]
mboree.com>
Sep 12 17:18:02 rwns01 postfix/qmgr[9986]: [ID 197553 mail.info] AADC138B5: 
from=<[EMAIL PROTECTED]>, size=585, nrcpt=1 (queue ac
tive)
Sep 12 17:18:02 rwns01 postfix/smtpd[10002]: [ID 197553 mail.info] disconnect 
from xxx.ecorp.gymboree.com[x.x.x.x]
Sep 12 17:18:02 rwns01 postfix/smtp[10010]: [ID 947731 mail.warning] warning: 
host relay2.ecorp.gymboree.com[y.y.y.y] greeted me wit
h my own hostname gymboree.com
Sep 12 17:18:02 rwns01 postfix/smtp[10010]: [ID 947731 mail.warning] warning: 
host relay2.ecorp.gymboree.com[y.y.y.y] replied to HEL
O/EHLO with my own hostname gymboree.com
Sep 12 17:18:02 rwns01 postfix/smtp[10010]: [ID 197553 mail.info] AADC138B5: 
to=<[EMAIL PROTECTED]>, relay=relay2.ecorp.gymboree.com[
y.y.y.y], delay=0, status=bounced (mail for relay2.ecorp.gymboree.com loops 
back to myself)
Sep 12 17:18:02 rwns01 postfix/cleanup[10008]: [ID 197553 mail.info] D928938B8: 
message-id=<[EMAIL PROTECTED]>
Sep 12 17:18:02 rwns01 postfix/qmgr[9986]: [ID 197553 mail.info] D928938B8: 
from=<>, size=2237, nrcpt=1 (queue active)
Sep 12 17:18:02 rwns01 postfix/qmgr[9986]: [ID 197553 mail.info] AADC138B5: 
removed
Sep 12 17:18:02 rwns01 postfix/smtp[10010]: [ID 947731 mail.warning] warning: 
host relay2.ecorp.gymboree.com[y.y.y.y] greeted me wit
h my own hostname gymboree.com
Sep 12 17:18:02 rwns01 postfix/smtp[10010]: [ID 947731 mail.warning] warning: 
host relay2.ecorp.gymboree.com[y.y.y.y] replied to HEL
O/EHLO with my own hostname gymboree.com
Sep 12 17:18:02 rwns01 postfix/smtp[10010]: [ID 197553 mail.info] D928938B8: 
to=<[EMAIL PROTECTED]>, relay=relay2.ecorp.gymboree.
com[y.y.y.y], delay=0, status=bounced (mail for relay2.ecorp.gymboree.com loops 
back to myself)
Sep 12 17:18:02 rwns01 postfix/qmgr[9986]: [ID 197553 mail.info] D928938B8: 
removed




Run the following command on both relays:
$ postconf myhostname

Change the hostname of one of the relays. it's like with children, if you give them the same name, you'll get into trouble.


Reply via email to