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