LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-20-2005, 11:07 PM   #1
Devyn
Member
 
Registered: Oct 2004
Posts: 98

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, 04: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: 32
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, 08:21 PM   #3
Devyn
Member
 
Registered: Oct 2004
Posts: 98

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 AM.

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
Open Source Consulting | Domain Registration