Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Configuring sendmail in SL7: is it really postfix?
RockM66
 Posted: Nov 7 2015, 03:33 PM
Quote Post


SLF Newbie


Group: Members
Posts: 6
Member No.: 3233
Joined: 8-October 14









I'm trying to configure sendmail to use an external SMTP server SL 7.1. Really I'm trying to get the PHP mail() function to work, and it seems PHP uses sendmail as configured in /etc/php.ini.

I seem to have gotten things to work, but I'm still pretty confused. If someone could confirm/correct the following observations, and/or point me to relevant articles, I'd greatly appreciate it.

In Scientific Linux 7.1 (Nitrogen):

* The sendmail command is now part of postfix (see man sendmail, note /usr/sbin/sendmail is a link to /etc/alternatives/mta, package sendmail is not installed)

* All the usual sendmail configuration files I read about are gone

* /etc/mail.rc is unrelated to sendmail

* To configure an smtp server for use with sendmail, you edit /etc/postfix/main.cf and restart the postfix server (systemctl restart postfix.service)

* For example, to use an external smtp server, add the line mailrelay = [mysmtpserver.com]

Help appreciated, thanks.

PM
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll