Error Installing Sendmail on Mandrake Limited Edition 2005


During an attempt to install Sendmail on My Linux Box, I get the following Error:

"There was a problem during the installation:
file /etc/pam.d/smtp from install of sendmail-8.13.3-2mdk
conflicts with file from package postfix-2.1.5-6mdk"

I wanted to set up Sendmail on My PC, but, evidently there's an issue.

How can I get this to work?

If Not, what can I use for My php Code so that the following line of code will work?

Thank You.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I think the install will succeed if you remove the postfix package first (rpm -e postfix-2.1.5-6mdk).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FirstBornAuthor Commented:
Hi jlevie,

Thanks for participating.

I hadn't done My due diligence before posting this Q.
I found that postfix is an alternative to sendmail.

Which do You prefer?
postfix or sendmail?

... and, Most Importantly, which would be Easier for Me to Configure?


Which MTA to use is something of "a religious question". There are folks that prefer Postfix and those that prefer Sendmail (or qmail or whatever). I personally prefer Sendmail, but then I've been using it for over twenty years.

In the general case Postfix or Sendmail on any recent version of Linux will pretty much work for outgoing mail "out of the box", so either should be fine for use from within PHP.  Inbound mail services may require some small edits (like removing the localhost restriction for Sendmail on some linux distros).

One thing that you always want to do in PHP is to explictly specify the envelope sender email address. Otherwise the mail will appear to be from apache@localhost, nobody@localhost, etc and many Internet mail servers will reject such mail. That's easily done by including an extra argument in the mail() command, see Example 3 at
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.