1

I am running CentOS, but can't find the sendmail configuration file.

According to these instructions, Common Sendmail Configuration Changes, the config file should be in /etc/mail/sendfile.cf.

I don't have a mail folder in /etc.

I did a whereis sendmail and found it in /usr/sbin/sendmail. A search in /usr/sbin/ could not locate the sedmail.cf nor could it find the sendmail.mc file.

How do I create a config file?

BTW, sendmail works, as I can send an email via the PHP function mail().

3
  • 1
    You probably don't have sendmail installed but have postfix instead. You can verify this by running rpm -qfi /usr/sbin/sendmail.
    – user143703
    Nov 19 '14 at 13:35
  • centos 6 runs postfix by default
    – c4f4t0r
    Nov 19 '14 at 13:37
  • Summary : Postfix Mail Transport Agent I have postfix installed!!! Thanks!!! Nov 19 '14 at 13:37
3

You probably don't have sendmail installed but have postfix instead. You can verify this by running rpm -qfi /usr/sbin/sendmail.

As c4f4t0r commented, postfix is the default mailer in CentOS 6. Sendmail is available but not installed by default.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.