Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-20-2005, 11:07 PM   #1
Registered: Oct 2004
Posts: 67

Rep: Reputation: 15
Sendmail and ISP SMTP


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

sendmail < 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.

Old 06-21-2005, 04:10 PM   #2
Pete M
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

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

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

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


You then need to remake, restart sendmail

Old 06-29-2005, 08:21 PM   #3
Registered: Oct 2004
Posts: 67

Original Poster
Rep: Reputation: 15

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

m4 /etc/mail/ > /etc/mail/

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?



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 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

All times are GMT -5. The time now is 12:36 AM.

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