LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail and ISP SMTP (https://www.linuxquestions.org/questions/linux-software-2/sendmail-and-isp-smtp-335603/)

Devyn 06-20-2005 11:07 PM

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

Pete M 06-21-2005 04:10 PM

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

Devyn 06-29-2005 08:21 PM

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


All times are GMT -5. The time now is 08:25 PM.