1827806 Members
2222 Online
109969 Solutions
New Discussion

smtp-auth with sendmail

 
moh_1
New Member

smtp-auth with sendmail

hi all,
i have a problem with sendmail. our mail server needs to relay mail to our main mail server (smtp.mycompany.com) and receives from (pop.mycompany.com). they have given us a username and password that we need to authnticate. so all mails of my company come to our mail server and then our mail server will relay mail to our main server.
i have tried creating auth-file , putting in username and pasword, but is now working with sendmail. presenly we r running on windows and want to shift to sendmail.
can anyody plz help me in configuring the environment as i have discussed.
i have put an entry in smart_host option and created auth fle also with username and password, still i can't authenticate.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: smtp-auth with sendmail

Shalom,

If these two servers have a trust relationship, ie they are both within your company, there is not a need to set up authorization.

You can set up a user list in /etc/mail/virtusertables and that will insure the server only accepts mail for user you deem as valid.

there is a lot of documentation on this at http://www.sendmail.org.

If this methodology might work for you, the details are at sendmail.org, though I could sift through it and glean the important points for you.

I'll monitor the thread and proceed if you are interested.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
moh_1
New Member

Re: smtp-auth with sendmail

yes, both servers are of my company but are at different locations. and main server caters to 3 different offices, so they have given us username and password to authenticate.

i am trying to send mail, but its not authenticating.

can u please tell me how to add users in sendmail, suppose i have a user sam.nam@mycompany.com with password as 12345, how am i going to add sam.nam in sendmail database. normal passwd command doesn't works for this.

moh_1
New Member

Re: smtp-auth with sendmail

one more thing plz tell me how can i retreive mails from pop.mycompany.com.
moh_1
New Member

Re: smtp-auth with sendmail

one more thing plz tell me how can i retreive mails from pop.mycompany.com. as i am new to sendmail
Tim Clarke
Advisor

Re: smtp-auth with sendmail

moh,
sendmail has nothing to do with subsequent collection of mail. Services like POP, webmail and IMAP are handled by other programs. If you google for "sendmail+pop+imap+web" there should be plenty to read ;-) The jist is that sendmail accepts mail on your server, decides that this is its final destination by the headers and puts the mail into destination files for recipients. Another program then, invoked by a remote user, collects the mail from there and displays it on their machine by another mechanism. I've tried to be brief here to keep the answer clean.
Regards
Tim Clarke
Hirantha Wijayawardena
Occasional Contributor

Re: smtp-auth with sendmail

I might able to help you but I didnâ t get the clear picture of your requirement.

Pop.mycompany.com ---> our mail server ---> smpt.mycompany.com

Pop.mycompany.com is holding mailbox users and they gave the username/password.

You need to configure our mail server (mail relay server)

Is that right?

By the way postfix is a good start if youâ re new to linux smtpd.

- Hirantha