LinuxQuestions.org
Register a domain and help support LQ
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-21-2005, 12:07 AM   #1
Devyn
Member
 
Registered: Oct 2004
Posts: 60

Rep: Reputation: 15
Sendmail and ISP SMTP


Hello,

I would like to send mail through the command line as:

sendmail recipient@domain.com < textfile.txt

but that doesn't work. I will probably need to setup my ISP SMTP servers through sendmail config files but I'm not sure how to go about doing this.

How would I go about doing this? I've searched online for this but couldn't find any clear directions on doing this. This is an FC2 system behind a D-Link broudband router.

Thanks,
Dev
 
Old 06-21-2005, 05:10 PM   #2
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 31
Devyn

In answer to your specific question this is the line in sendmail.mc that you need to edit

dnl define(`SMART_HOST',`smtp.your.provider')

Remove dnl and add your ISP's SMTP server like this

define(`SMART_HOST',`smtp.anywhere.com')

You then need to remake sendmail.cf, restart sendmail

Pete
 
Old 06-29-2005, 09:21 PM   #3
Devyn
Member
 
Registered: Oct 2004
Posts: 60

Original Poster
Rep: Reputation: 15
Hello,

Thank You, Pete. I've done that and, after backing up the original, regenerated the semdmail.cf file with:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

But I get the following.

>>> DATA
<<< 501 Validating Sender
554 5.0.0 Service unavailable
<<< 503 Bad sequence of commands

I know I have to authenticate through POP3 before sending but how could I go about setting up authentication with sendmail?

Thanks,
Devyn
 
  


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
my isp blocks SMTP port ultrax Linux - Networking 14 08-05-2005 10:16 PM
Sendmail & ISP datadriven Slackware 11 05-17-2005 08:51 AM
smtp through ISP wizardmax Linux - Newbie 3 09-22-2004 10:39 AM
Postfix newbie - send to ISP SMTP server not working deanquanne Linux - Software 2 11-05-2003 02:22 PM
My ISP blocks port 25-smtp sending prob help Bensoft Kill MS Linux - Software 2 09-05-2003 01:49 AM


All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
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