Fedora Linux Support Community & Resources Center
  #1  
Old 17th September 2004, 02:30 AM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
Question configure sendmail to use external mail server

How can i do this ?

Hopefully someone can explain this to me in detail.
Reply With Quote
  #2  
Old 17th September 2004, 10:20 AM
pigpen Offline
Registered User
 
Join Date: Nov 2003
Location: Regensburg, Germany
Age: 43
Posts: 447
change your /etc/mail/sendmail.cf to read
Code:
# "Smart" relay host (may be null)
DSsmtp:your-mailer.external-host.net
__________________
/(bb|[^b]{2})/ -- that is the question!
Reply With Quote
  #3  
Old 17th September 2004, 07:23 PM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
But the thing is that my mail server Requires authentication. What else do i do ?

Thanks for replying.
Reply With Quote
  #4  
Old 21st September 2004, 07:44 PM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
Anyone Please ?
Reply With Quote
  #5  
Old 22nd September 2004, 01:29 AM
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
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

Last edited by blammo; 22nd September 2004 at 02:23 AM.
Reply With Quote
  #6  
Old 22nd September 2004, 03:27 AM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
Quote:
Originally Posted by blammo
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 ?
Reply With Quote
  #7  
Old 22nd September 2004, 04:19 AM
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
OK, here's an easier way. Add the following line to /etc/mail/access:

Code:
Authinfo:smtp.server.com "U:username" "P:password"
Then run:

Code:
makemap -o /etc/mail/access.db < /etc/mail/access
Restart sendmail.

The answer to your last question is yes.
Reply With Quote
  #8  
Old 22nd September 2004, 04:32 AM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
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 ?
Reply With Quote
  #9  
Old 22nd September 2004, 04:46 AM
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
Okay sorry... if the access.db file already exists then issue:

Code:
makemap -o hash /etc/mail/access.db < /etc/mail/access
If it doesn't exist then issue:

Code:
makemap hash /etc/mail/access.db < /etc/mail/access
Reply With Quote
  #10  
Old 22nd September 2004, 04:58 AM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
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.
Reply With Quote
  #11  
Old 24th September 2004, 07:26 PM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
Anyone ?
Reply With Quote
  #12  
Old 24th September 2004, 07:28 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
what does phpinfo() say about the mail-settings?
__________________
--
http://twitter.com/ik12
Reply With Quote
  #13  
Old 24th September 2004, 07:31 PM
mtekc Offline
Registered User
 
Join Date: Jun 2004
Posts: 30
thats what it saids

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

Last edited by mtekc; 24th September 2004 at 07:42 PM.
Reply With Quote
Reply

Tags
configure, external, mail, sendmail, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how-to configure sendmail to relay mail on port other than 25 toughguy Servers & Networking 4 31st January 2010 02:18 AM
sendmail can't send mail from local mail server? shams Servers & Networking 0 16th June 2006 04:35 PM
SendMail - Need to configure for (JUST) Outgoing WAN Mail chris_y2k_r1 Servers & Networking 1 22nd March 2006 12:52 AM
HOW-TO configure a Sendmail server lvansteen Guides & Solutions (No Questions) 0 22nd January 2005 09:27 AM


Current GMT-time: 10:12 (Tuesday, 30-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat