LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   sendmail reverse lookup problem (http://www.linuxquestions.org/questions/linux-software-2/sendmail-reverse-lookup-problem-690996/)

stioanid 12-16-2008 12:37 PM

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.

robertwolfe 12-16-2008 11:04 PM

Quote:

Originally Posted by stioanid (Post 3377545)
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?

stioanid 12-17-2008 03:04 AM

Quote:

Originally Posted by robertwolfe (Post 3378061)
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

stioanid 12-17-2008 07:35 AM

Quote:

Originally Posted by stioanid (Post 3378223)
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" "P: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 "P: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 .


All times are GMT -5. The time now is 12:37 PM.