LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-23-2008, 05:51 AM   #1
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Rep: Reputation: 15
sendmail problem


I have a huge problem with deffered e-mails and I tried smart_host but didn't solve it.

My configuration is the following .
I have a mail server mail.example.gr which is configured with a virtual ip address .227 on eth0:1
I have as well my dsl connection through eth0 .237
All my outgoing e-mail goes out from eth0 (.237) so when a destination mx requests reverse lookup of the ip it end's up in resolving to .237 and the e-mail is deffered.
What I want is all my outgoing e-mail to be routed through my virtual ip which is .227 in eth0:1
When I used
define(`SMART_HOST',`mail.orco.gr')dnl which actually resolves to .227
again my e-mail gets deffered. I know that I am supposed to have my ISP's address here but I thought I'll give it a try.
Ofcourse I have an entry in my /etc/host file.
When I run sendmail -q -v I get the following
unning /var/spool/mqueue/mBN8MtVK031882 (sequence 1 of 1)
<mgennatou@bankofgreece.gr>... Connecting to mail.bankofgreece.gr. via esmtp...
220 mail.bankofgreece.gr ESMTP ready at Tue, 23 Dec 2008 10:24:09 +0200
>>> EHLO mail.orco.gr
250-mail.bankofgreece.gr
250-SIZE 10240000
250-8BITMIME
250 EHLO mail.orco.gr
>>> MAIL From:<npal@orco.gr> SIZE=787
421 mail.bankofgreece.gr has refused your connection because your server did not have a PTR record.
>>> QUIT
<mgennatou@bankofgreece.gr>... Connecting to mail-relay.bankofgreece.gr. via esmtp...
<mgennatou@bankofgreece.gr>... Deferred: Connection timed out with mail-relay.bankofgreece.gr.
Closing connection to mail.bankofgreece.gr.

Any suggestions would be more than helpfull because I am getting crazy. I am trying to resolve this for about ten days.

Last edited by stioanid; 12-24-2008 at 03:28 AM.
 
Old 12-24-2008, 03:48 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
It seems that both your IPs (x.x.x.227 and x.x.x.237) do not have a PTR record. To be more precise .227 can be resolved only from your ISP's dns and not from other dns servers.
You should contact your ISP to tell them about this problem and maybe ask them to allow you to do the reverse dns for your subnet (classless IN-ADDR.ARPA delegation).

Regards

Last edited by bathory; 12-24-2008 at 03:59 AM.
 
Old 12-29-2008, 01:49 AM   #3
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
Exclamation sendmail problem

Quote:
Originally Posted by bathory View Post
It seems that both your IPs (x.x.x.227 and x.x.x.237) do not have a PTR record. To be more precise .227 can be resolved only from your ISP's dns and not from other dns servers.
You should contact your ISP to tell them about this problem and maybe ask them to allow you to do the reverse dns for your subnet (classless IN-ADDR.ARPA delegation).

Regards
My ISP all ready has a PTR record for the .227 (mail.orco.gr)address and they can't add another PTR record for the .237 addres beucase I'll have a conflict.
From my side I have configured the Client options in sumbit.cf in order to make sure that all my e-mails are leaving with the .227 as their source address. But the MX server at the destination still tries to resolve the .237 address? Which is the IP address of the actual eth0 interface.
Could it be due to routing rules in the cisco router?
I mean how is it possible an e-mail that leaves my server with a header .227 to change during it's trip to the destination.
 
Old 12-29-2008, 05:13 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Quote:
My ISP all ready has a PTR record for the .227 (mail.orco.gr)address and they can't add another PTR record for the .237 addres beucase I'll have a conflict.
What conflict? If a single IP address resolves in a fqdn there will be no conflict.
You also can try to use the ClientPortOptions in sendmail.cf to see if it helps:
Code:
O ClientPortOptions=Family=inet, Address=xx.xx.xx.227
 
Old 12-30-2008, 02:50 AM   #5
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
sendmail problem

Quote:
Originally Posted by bathory View Post
What conflict? If a single IP address resolves in a fqdn there will be no conflict.
You also can try to use the ClientPortOptions in sendmail.cf to see if it helps:
Code:
O ClientPortOptions=Family=inet, Address=xx.xx.xx.227
I have all ready used the ClientPortOptions in sendmail.cf but still the mail gets deferred.
Now what I mean with conflict is that my ISP cannot have a record for
mail.orco.gr pointing to IP xxx.xxx.xxx.227 and another one
mail.orco.gr pointing to IP xxx.xxx.xxx.237.
Do you think it's a routing problem? That's my only guess since the e-mail is leaving with IP .227.
I was thinking to request for my provider to relay e-mails through him but probably that's going to be some extra cost or as you suggested ask them to allow to do the reverse dns for my subnet (classless IN-ADDR.ARPA delegation) which probably will be costless as well.

Last edited by stioanid; 12-30-2008 at 02:58 AM.
 
Old 12-30-2008, 09:29 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Try the following varioation to see if it works:
Code:
O ClientPortOptions=Family=inet, Address=xx.xx.xx.227, Modifiers=bh
Quote:
Now what I mean with conflict is that my ISP cannot have a record for
mail.orco.gr pointing to IP xxx.xxx.xxx.227 and another one
mail.orco.gr pointing to IP xxx.xxx.xxx.237.
Well, he can but it's useless here (this is used for a round robin setup).
What you need is that the IP resolves to a valid hostname. You can have xx.xx.xx.227 PTR pointing to mail.orco.gr and xx.xx.xx.237 PTR pointing again to mail.orco.gr. Or you can use a different name if you want(xx.xx.xx.237 PTR mail2.orco.gr).

As for the rest of your questions:
1. I don't think it's a routing problem.
2. You can use your ISP's mailserver (mailgate.forthnet.gr) as a smarthost without any extra cost.
3. I don't know the kind of connection you use, but I was working in a company using a leased line provided by your ISP and our /27 subnet delegation was free. You better contact them for details.
 
Old 01-07-2009, 06:27 AM   #7
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Try the following varioation to see if it works:
Code:
O ClientPortOptions=Family=inet, Address=xx.xx.xx.227, Modifiers=bh
Well, he can but it's useless here (this is used for a round robin setup).
What you need is that the IP resolves to a valid hostname. You can have xx.xx.xx.227 PTR pointing to mail.orco.gr and xx.xx.xx.237 PTR pointing again to mail.orco.gr. Or you can use a different name if you want(xx.xx.xx.237 PTR mail2.orco.gr).

As for the rest of your questions:
1. I don't think it's a routing problem.
2. You can use your ISP's mailserver (mailgate.forthnet.gr) as a smarthost without any extra cost.
3. I don't know the kind of connection you use, but I was working in a company using a leased line provided by your ISP and our /27 subnet delegation was free. You better contact them for details.
I decide to go with adding two more PTR records mail2.orco.gr mail3.orco.gr that will resolve to xx.xx.xx.237 and xx.xx.xx.238 because in order to relay my e-mail through forthnet they have specific service which of course they charge.
Is there anything I need to do in my side in order to accommodate these changes.
I mean, does sendmail.cf or mc needs any changes?
By the way thank you for your help so far!!!
 
Old 01-07-2009, 07:02 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Quote:
I decide to go with adding two more PTR records mail2.orco.gr mail3.orco.gr that will resolve to xx.xx.xx.237 and xx.xx.xx.238 because in order to relay my e-mail through forthnet they have specific service which of course they charge.
It seems that you are not authoritative for the domain in question, but forthnet. Check the output of:
Code:
dig +trace .mail.orco.gr
Thus any changes you make to your local dns are not reflected to the rest of the world.
You have to either tell forthnet to update their DNSes with your records, or make your dns authoritative (you should do this this through the domain registrar).

Regards
 
Old 01-08-2009, 01:58 AM   #9
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
sendmail problem

Quote:
Originally Posted by bathory View Post
It seems that you are not authoritative for the domain in question, but forthnet. Check the output of:
Code:
dig +trace .mail.orco.gr
Thus any changes you make to your local dns are not reflected to the rest of the world.
You have to either tell forthnet to update their DNSes with your records, or make your dns authoritative (you should do this this through the domain registrar).

Regards
As far as necessary MX and PTR records is concerned, forthnet is going to update their dns records.
What I am asking is if I'll have to change anything on my side. On the configuration of sendmail.
For example I have configured the ClientOptions parameter in my sendmail.cf with the xx.xx.xx.227.
So do I need to reconfigure anything in sendmail?
 
Old 01-08-2009, 02:53 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Quote:
What I am asking is if I'll have to change anything on my side. On the configuration of sendmail.
For example I have configured the ClientOptions parameter in my sendmail.cf with the xx.xx.xx.227.
So do I need to reconfigure anything in sendmail?
I don't think that you have to reconfigure anything in sendmail. Of course you'll see if you have any problems now that your A and PRT records are set.
Btw ClientOptions is not necessary any more.

Regards
 
Old 01-13-2009, 04:12 AM   #11
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
sendmail problem solved

Quote:
Originally Posted by bathory View Post
I don't think that you have to reconfigure anything in sendmail. Of course you'll see if you have any problems now that your A and PRT records are set.
Btw ClientOptions is not necessary any more.

Regards
Thank you very much for all your help. Issue solved !
I didn't need to change anything my side. Everything works now.
Only question now is why this thing happened in the first place.
I mean I did upgrade my distro and my kernel beginning of october (I do upgrades once a year) but I kept the configuration of sendmail exactly the same. Any way I'll solve the mystery.
 
  


Reply

Tags
sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail problem baldur2630 Linux - Newbie 2 01-29-2007 12:11 AM
sendmail.mc and sendmail-cf problem. ChrisScott Linux - Software 1 11-26-2006 01:30 PM
problem processing sendmail.mc to sendmail.cf ...help... lucastic Linux - Networking 1 09-21-2003 10:08 AM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM
sendmail problem gui10 Linux - General 0 03-11-2002 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration