LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mail Resolution Problem (https://www.linuxquestions.org/questions/linux-server-73/mail-resolution-problem-724646/)

rasalp 05-08-2009 06:16 AM

Mail Resolution Problem
 
Hi everyone,

This is quite irritating problem started to through in our company.

User mails sent to oxfordjournals.org to should go through thier relay01 not to relay02. since the oxfordjournals relay02 has slower smtp we are receiving bounce back message some time.

Can any help me to make my smtp server to start handshake with relay01 server of oxfordjournals.

Please guide me to proceed.

please find my success and failure log of the same in maillog.

its a urgent issue at our end.

May 8 15:09:11 tnqdns2 postfix/smtp[1820]: DCBBA7080FC: to=<jnci@oxfordjournals.org>, relay=none, delay=34, status=deferred (connect to relay02.us.hub.oup.com[12.107.205.11]: server dropped connection without sending the initial SMTP greeting)
May 8 15:09:11 tnqdns2 postfix/smtp[1820]: DCBBA7080FC: to=<mark.geanacopoulos@oxfordjournals.org>, relay=none, delay=34, status=deferred (connect to relay02.us.hub.oup.com[12.107.205.11]: server dropped connection without sending the initial SMTP greeting)
May 8 15:14:46 tnqdns2 postfix/smtp[665]: 116DB708101: to=<camres@oxfordjournals.org>, relay=relay02.us.hub.oup.com[12.107.205.11], delay=32, status=sent (250 Requested mail action okay, completed)
May 8 15:28:29 tnqdns2 postfix/smtp[4159]: 1DF4F708101: to=<famprj@oxfordjournals.org>, relay=relay02.us.hub.oup.com[12.107.205.11], delay=32, status=sent (250 Requested mail action okay, completed)
May 8 15:33:23 tnqdns2 postfix/smtp[5857]: 0581D708101: to=<annonc@oxfordjournals.org>, relay=relay02.us.hub.oup.com[12.107.205.11], delay=54, status=sent (250 Requested mail action okay, completed)

bathory 05-08-2009 06:50 AM

Hi,

With sendmail this is done using the mailertable feature. As I'm not familiar with postfix, I had to do a little search and it seems that you have to use transport to route mail for a specific domain through a specific mail server.

rasalp 05-08-2009 06:53 AM

thanks

Let me check that too now

Regards,
Rasal

rasalp 05-08-2009 07:03 AM

can i add a /etc/hosts entry for the below will it resolve????

below got through dnslookup for oxfordjournals.org
relay01.uk.hub.oup.com 1 A 193.63.239.164 301s
relay02.us.hub.oup.com 1 A 12.107.205.11 1066s

please help

thanks in advance
Rasal.

rasalp 05-08-2009 07:08 AM

i could see the below log for the relay01 is always fails to connect. this is because firewall is blocking.


May 8 17:17:48 tnqdns2 postfix/smtp[21224]: connect to relay01.uk.hub.oup.com[193.63.239.164]: Connection timed out (port 25)
May 8 17:28:23 tnqdns2 postfix/smtp[23663]: connect to relay01.uk.hub.oup.com[193.63.239.164]: Connection timed out (port 25)
May 8 17:34:19 tnqdns2 postfix/smtp[26548]: connect to relay01.uk.hub.oup.com[193.63.239.164]: Connection timed out (port 25)
May 8 17:34:33 tnqdns2 postfix/smtp[26595]: connect to relay01.uk.hub.oup.com[193.63.239.164]: Connection timed out (port 25)

bathory 05-08-2009 07:34 AM

That explains why your mailserver uses relay02. Because according to dig results, relay01 is the preferred mail server for oxfordjournals.org:
Quote:

dig mx oxfordjournals.org

; <<>> DiG 9.6.0-P1 <<>> mx oxfordjournals.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10548
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 0

;; QUESTION SECTION:
;oxfordjournals.org. IN MX

;; ANSWER SECTION:
oxfordjournals.org. 3600 IN MX 10 relay01.uk.hub.oup.com.
oxfordjournals.org. 3600 IN MX 20 relay02.us.hub.oup.com.
Anyway since I can connect to port 25 of relay01, I guess it's a problem from your end.

rasalp 05-08-2009 08:25 AM

thanks dude. i found out that our firewall blocks the 25 port to the server. since our outside firewall machine listens to relay01 25 port.

great it done the trick.

thanks very much
Rasalll


All times are GMT -5. The time now is 06:50 PM.