LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 12-16-2008, 11:37 AM   #1
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Rep: Reputation: 15
sendmail reverse lookup problem


I have configured a mail server through sendmail and the problem I am facing is that some of my outgoing e-mails get deffered and come back to mailq
This is happening when the destination MX server request for reverse lookup. I have PTR record in my NS server.
Basically the get differed because outgoing mail gets out through a virtual ip address which is .226 (through a leased line) and my MX server is .227.
Any ideas on how I can setup my sendmail in order to resolve this.
I know that somewhere in my configuration I can set it up so that it looks like all my e-mails are leaving from .227.
 
Old 12-16-2008, 10:04 PM   #2
robertwolfe
Member
 
Registered: Apr 2005
Location: Grand Island, NY
Distribution: Ubuntu and Debian
Posts: 57

Rep: Reputation: 16
Quote:
Originally Posted by stioanid View Post
I have configured a mail server through sendmail and the problem I am facing is that some of my outgoing e-mails get deffered and come back to mailq
This is happening when the destination MX server request for reverse lookup. I have PTR record in my NS server.
Basically the get differed because outgoing mail gets out through a virtual ip address which is .226 (through a leased line) and my MX server is .227.
Any ideas on how I can setup my sendmail in order to resolve this.
I know that somewhere in my configuration I can set it up so that it looks like all my e-mails are leaving from .227.
Do you have sendmail attempting to send email via the smtp server (a smarthost) of your ISP?
 
Old 12-17-2008, 02:04 AM   #3
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by robertwolfe View Post
Do you have sendmail attempting to send email via the smtp server (a smarthost) of your ISP?

I just did that. I configured my smarthost variable to mail.mydomain.com which is my MX .

I hope it works. I'll check it and I'll let you know
 
Old 12-17-2008, 06:35 AM   #4
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by stioanid View Post
I just did that. I configured my smarthost variable to mail.mydomain.com which is my MX .

I hope it works. I'll check it and I'll let you know
It doesn't work after all.

By the way my ISP provider is only responsible for DNS not sendmail. Sendmail is locally mantained.

I did the following but still it seems it doesn't work

edit sendmail.mc

dnl MASQUERADE_AS('example.com')dnl

dnl MASQUERADE_AS('example.com')dnl

FEATURE(`access_db')dnl

FEATURE(`authinfo', `hash /etc/mail/authinfo')

define(`SMART_HOST',`mail.example.com')dnl

MASQUERADE_AS(example.com)dnl

FEATURE(`allmasquerade')dnl

FEATURE(`masquerade_envelope')dnl

FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl

GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl

MAILER(smtp)dnl

MAILER(procmail)dnl


Create a file named
/etc/mail/genericstable
with this inside it

root stavros@example.com

and the execute this,

makemap hash /etc/mail/genericstable < /etc/mail/genericstable

FEATURE(`authinfo', `hash /etc/mail/authinfo')

Then created the authinfo file

vi /etc/mail/authinfo

with this inside

AuthInfo:mail.example.com "U:stavros@mail.example.com" "I:stavros" "Passwd" "M:LOGIN PLAIN"

and run

makemap hash /etc/mail/authinfo < /etc/mail/authinfo

and made authinfo readable only by root

chmod 600 /etc/mail/authinfo

My question is do I need to really have the real password in "Passwd" ? And the user I am using has to have root priviliges?
And can you check generally to see if what I did looks all right .
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse-IP Lookup LInxia Linux - Networking 4 05-08-2011 04:31 AM
reverse lookup problem while using a private classless network ID lectricjunky Linux - Enterprise 4 05-05-2008 12:20 PM
DNS Reverse lookup problem pazvant Linux - Networking 3 10-10-2005 06:36 AM
problem with sendmail, IP address lookup failed mcd Linux - Networking 6 03-14-2005 08:14 AM
Reverse lookup on Postfix Phaethar Linux - Software 1 05-03-2004 04:00 PM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration