• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 987
  • Last Modified:

Sendmail smarthost configuration with smtp-authorization

Hello,
we have a new server running CentOS and couple of VPSs on it and we wanted to configure sendmail to use smarthost instead of direct-delivery. i found articles how to do this and it seems pretty straight forward. however, our smart-host requires smtp-authorization (username/password). Is there any way to configure sendmail smarthost configuration with smtp-authorization? Can you please send me how-to instruction and what i will need to do?

thanks,
Michael
0
MichaelPro
Asked:
MichaelPro
2 Solutions
 
orizivCommented:
0
 
ibu1System AdministratorCommented:
0
 
rugdogCommented:
you need to add to /etc/mai/access the login info of your smart host, so add a line like this:

AuthInfo:your.smtp.host.com "U:<username>" "P:<password>" "M:PLAIN"

then type "make" to refresh the access.db file.

0
 
MichaelProAuthor Commented:
Hello rugdog,

thanks for the comment. so if i understand correctly, first i will need to add this to /etc/mail/sendmail.mc  :

define(`SMART_HOST', `mail.isp.net')
 
and then in /etc/mai/access , i add AuthInfo:your.smtp.host.com "U:<username>" "P:<password>" "M:PLAIN"

is this correct?

thaknks,
Michael
0
 
rugdogCommented:
yes but replace "your.smtp.host.com" with mail.isp.net and of course "<username>" and "<password>" with your login/pass. Proably needless to say, but after you edit the files, you need to regenerate your sendmail.cf and make the access.db then restart sendmail, normally:

cd /etc/mail
m4 sendmail.mc > sendmail.cf
make
service sendmail restart
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now