Dan Burkland
2010-Jun-15 02:50 UTC
[CentOS] Disable sendmail and configure mailx to use an external Postfix server?
Is there anyway I can disable sendmail on my various machines and configure mailx on them to utilize my Postfix SMTP server? Thanks, Dan
Kahlil Hodgson
2010-Jun-15 06:45 UTC
[CentOS] Disable sendmail and configure mailx to use an external Postfix server?
On 15/06/10 12:50, Dan Burkland wrote:> Is there anyway I can disable sendmail on my various machines and > configure mailx on them to utilize my Postfix SMTP server?ssmtp may do what you want Kal
Alexander Dalloz
2010-Jun-15 06:47 UTC
[CentOS] Disable sendmail and configure mailx to use an external Postfix server?
Am 15.06.2010 04:50, schrieb Dan Burkland:> Is there anyway I can disable sendmail on my various machines and configure mailx on them to utilize my Postfix SMTP server? > > Thanks, > > DanInstall "ssmtp" from EPEL and run `alternatives --config mta' to change from sendmail to ssmtp. That procedure will set a proper symlink for the sendmail command execution, which is required when you submit mails by using mail(x) command. `chkconfig sendmail off' will switch off the sendmail service. In /etc/ssmtp/ssmtp.conf configure your relay host parameters. Alexander
Niki Kovacs
2010-Jun-15 07:08 UTC
[CentOS] Disable sendmail and configure mailx to use an external Postfix server?
Dan Burkland a ?crit :> Is there anyway I can disable sendmail on my various machines and configure mailx on them to utilize my Postfix SMTP server?CentOS contains an utility to do just that. # yum install postfix system-switch-mail # system-switch-mail --> replace Sendmail by Postfix That's it. Cheers, Niki
Les Mikesell
2010-Jun-15 12:38 UTC
[CentOS] Disable sendmail and configure mailx to use an external Postfix server?
Dan Burkland wrote:> Is there anyway I can disable sendmail on my various machines and configure mailx on them to utilize my Postfix SMTP server? >You might, but I'd leave sendmail in its default configuration of only accepting connections from localhost because a lot of other programs expect to be able to use it to send mail and it will queue and retry if it can't deliver immediately. Just edit sendmail.mc and point SMART_HOST to the server that you want to use as a relay. -- Les Mikesell lesmikesell at gmail.com
Steven Tardy
2010-Jun-15 14:00 UTC
[CentOS] Disable sendmail and configure mailx to use an external Postfix server?
Dan Burkland wrote:> Is there anyway I can disable sendmail on my various machines and configure mailx on them to utilize my Postfix SMTP server?leave sendmail there and in /etc/mail/sendmail.mc add the line: FEATURE(`nullclient', `smtp.server.example.com')dnl restart sendmail nullclient will send all mail to the relay, no local queuing, no local headers. smarthost will try to deliver locally(if it's a local account), and queue locally. smarthost is close, but nullclient might be what is wanted. ref: Sendmail Cookbook, chapter 3.1, Passing All Mail to a Relay