Is there anyway I can disable sendmail on my various machines and configure mailx on them to utilize my Postfix SMTP server?
Thanks,
Dan
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,
Dan
Install "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
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
Am 15.06.2010 09:08, schrieb Niki Kovacs:
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
That will just replace one MTA by another. The OP wants to use a central mail hub, an external already setup Postfix server as his relay.
Alexander
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.
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