LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-18-2004, 04:25 PM   #1
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
configure sendmail to use a specific smtp server


since many isp's don't allow residential isp's to send out emails, i want to use my isp's native smtp server (smtp-server.hot.rr.com) to send out emails with sendmail; i don't know where/how to configure this, though....

i know that roadrunner and many other isp's are supposed to block outgoing on port 25, but i want to try nonetheless

thx in advance!
 
Old 06-18-2004, 04:46 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You will need to add a line like this to sendmail.mc:
define(`SMART_HOST',`smtp.yourisp.com')

The remake sendmail.cf (you might want to make a backup first):
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

After you restart sendmail it should use your ISPs smtp server as relay.

I've not heard of many ISPs blocking all outgoing SMTP - they will at least let you reach their server.
 
Old 06-18-2004, 06:50 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
hmm, didn't work; i successfully created the .cf file, but afaik, the roadrunner smtp server was not being used; when i try to email people at services like roadrunnner or aol, i get a mailer-daemon notice telling me that their services reject dynamic/residential IP e-mail transactions

web-based mail like yahoo and hotmail work perfectly, though

here is the mail i get when emailing roadrunner accounts:

(edited out: don't want people too many people to see this info just yet; the e-mail you will see if you try to send mail with a residential ip will be pretty distinct)

perhaps i'm looking at the wrong thing... it is the fact that i'm using my own smtp server that is causing problems, right?

Last edited by TheOneAndOnlySM; 06-19-2004 at 05:12 PM.
 
Old 06-19-2004, 05:22 PM   #4
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
awesome, i think i've got this sorted out

first, it Was the smtp server that was causing the problem; if you don't use a business-class mail transfer protocol/ip, then many isp's will reject the e-mail

however, instead of using localhost as the transfer program, just use the native isp server by editing you sendmail.cf file (for slackware it is in /etc/mail) and looking for this line:

# "Smart" relay host (may be null)
DS

and append the correct server right next to DS (no spaces); so for roadrunner you can use

# "Smart" relay host (may be null)
DSsmtp-server.hot.rr.com

and it will work! i am sending to aol and roadrunner users with no problems

no authentication required, it seems, since the only people who can access that are the actual roadrunner subscribers

also, in regards to your isp's blocking your ability to do this: usually only if you are a spammer or a big-time p2p user will they block port 25 usage for mail servers
 
Old 06-20-2004, 05:15 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
That is what editing the sendmail.mc fils should do but i gave you the wrong path to sendmail.cf - sorry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Can I install an smtp Server/(sendmail) on my firewall? mfeoli Linux - Networking 4 02-12-2004 09:19 AM
configure pop-besore-smtp on sendmail nelsoon Linux - Software 1 12-22-2003 09:21 AM
How to configure sendmail to use other smtp server? josealexandre Linux - Newbie 2 10-12-2003 05:09 PM
sendmail configure relay for specific e-mail addresses LeovanBussel Linux - Newbie 1 07-29-2003 03:08 AM
How to configure smtp server in RH7.3 renjith_renjith Linux - Networking 1 04-25-2003 09:47 AM


All times are GMT -5. The time now is 09:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration