PDA

View Full Version : configure sendmail to use external mail server


mtekc
17th September 2004, 02:30 AM
How can i do this ?

Hopefully someone can explain this to me in detail.

pigpen
17th September 2004, 10:20 AM
change your /etc/mail/sendmail.cf to read # "Smart" relay host (may be null)
DSsmtp:your-mailer.external-host.net

mtekc
17th September 2004, 07:23 PM

But the thing is that my mail server Requires authentication. What else do i do ?

Thanks for replying. :)

mtekc
21st September 2004, 07:44 PM
Anyone Please ? :cool:

blammo
22nd September 2004, 01:29 AM
I think for 8.12 it is as follows:

(In sendmail.mc)

FEATURE (`authinfo')

(In /etc/mail/authinfo)

Authinfo:smtp.server.com "U:<username>" "I:<identity>" "P:<password>" "M:LOGIN PLAIN"

(then remake your cf and hash maps and restart)

HTH

mtekc
22nd September 2004, 03:27 AM
I think for 8.12 it is as follows:

(In sendmail.mc)

FEATURE (`authinfo')

(In /etc/mail/authinfo)

Authinfo:smtp.server.com "U:<username>" "I:<identity>" "P:<password>" "M:LOGIN PLAIN"

(then remake your cf and hash maps and restart)

HTH


1- FEATURE (`authinfo') This doesnt exist on the file

2- (then remake your cf and hash maps and restart) i dont know how to remake the cf file either.


I appreciate the help , but i need steps or more detais. I have been having problems with this for as long as i can remember.

3- Also how can i get the phpmail(); function to work with the external email server. Will this work when i get sendmail to use my external mail server ?

blammo
22nd September 2004, 04:19 AM
OK, here's an easier way. Add the following line to /etc/mail/access:

Authinfo:smtp.server.com "U:username" "P:password"

Then run:

makemap -o /etc/mail/access.db < /etc/mail/access

Restart sendmail.

The answer to your last question is yes.

mtekc
22nd September 2004, 04:32 AM
makemap -o /etc/mail/access.db < /etc/mail/access

The makemap don't run . it saids

Usage: makemap ...blah...blah...blah...blah...blah...commands

What should i do ? :(

blammo
22nd September 2004, 04:46 AM
Okay sorry... if the access.db file already exists then issue:

makemap -o hash /etc/mail/access.db < /etc/mail/access

If it doesn't exist then issue:

makemap hash /etc/mail/access.db < /etc/mail/access

mtekc
22nd September 2004, 04:58 AM
ok , thats done, but something i maybe missing because nothing its happening.

if i use the phpmail(); option i dont get the email or nothing. :(

mtekc
24th September 2004, 07:26 PM
Anyone ? :confused:

ilja
24th September 2004, 07:28 PM
what does phpinfo() say about the mail-settings?

mtekc
24th September 2004, 07:31 PM
thats what it saids

sendmail_from no value
sendmail_path /usr/sbin/sendmail -t -i
SMTP localhost
smtp_port 25