LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   smart_host configuration in sendmail.mc (https://www.linuxquestions.org/questions/linux-general-1/smart_host-configuration-in-sendmail-mc-121518/)

sln 12-01-2003 03:22 AM

smart_host configuration in sendmail.mc
 
Hello

I am trying to configure sendmail “smart_host with authentication” on a RedHat 7.2 mail server. I have an ISP that is blocking port 25 and I cannot send emails from my server. I am trying to configure sendmail my mail server to relay its mail to my ISP’s mail server. I want my ISP’s mail server to think it is receiving mail from an email client configured to send mail to their email server. I am looking for configuration examples if possible using sendmail.mc to create a new sendmail.cf file. I think I need to use smart_host to relay mail (not sure) but I am a little weak on this configuration. I also need help in configuring sendmail to authenticate to the ISP server to think it is mail coming from me.

Any help here would be appreciated.


:Pengy:

Thanks,
Steve

DavidPhillips 12-01-2003 05:05 AM

Yes, you do need to use smarthost. That way your server will act like a client when sending email out and it will work with your ISP. Just make sure the servername is correct and you should be ok.


sendmail.mc

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

sendmail.cf

DSsmtp.yourisp.com

sln 12-01-2003 10:43 PM

Thanks for the input, but..
Yes I can see now how I need to configure the smart host in sendmail.ms, but what about the user name and password. If sendmail is acting as a client of sorts in this case don't I need to provide a user name and password for smart_host with authentication? Doen't the ISP smpt server expect some sort of authentication?

Thanks
Steve

DavidPhillips 12-01-2003 10:48 PM

No, smtp does not normally use authentication. They will have it configured to allow relay from their block of addresses. Your's would be one of them.

sln 12-01-2003 11:55 PM

This is a little messages to convey copious amounts of satisfaction to Linux Questions and David Phillips for taking the time to help out a linux colleague.. If you only knew how many headaches I have gone through trying to find a way around my ISP blocking port 25. Ouch it hurt!

Anyway, thanks again.
Steve

DavidPhillips 12-02-2003 03:36 AM

Cool :)


All times are GMT -5. The time now is 08:16 AM.