sendmail

13 posts / 0 new
Last post
#1 Wed, 06/18/2008 - 04:54
PeteLee

sendmail

I want to use sendmail as my mail server, However when I click on the start button It does not respond. Postfix is somehow set as the mail server but when I click on it to stop it won't stop. I vaguely remember a post earlier addressing this issue but I can't find it. Help would be appreciated.

Sun, 11/12/2006 - 12:02
BillClune

Pete i have the same issue did you ever find a cure??

Sun, 11/12/2006 - 13:38
Joe
Joe's picture

It's covered in the FAQ:

http://www.virtualmin.com/faq/one-faq?faq_id=1511#51230

And in this response to Bill's own query about the same problem here:

http://www.virtualmin.com/forums/message-view?message_id=73316

(Just wanting to make sure folks can find the answer if they're searching for it in the future.)

Note that this problem isn't related to Sendmail, at all, it's just you're less likely to have found the FAQ since Sendmail, unlike Postfix, won't fight against you using @ in the username.

--

Check out the forum guidelines!

Wed, 06/18/2008 - 06:32
andreychek

Howdy,

What distro are you using?

And, are you fairly certain Sendmail is installed now?

Have a good one,
-Eric

Wed, 06/18/2008 - 07:35 (Reply to #4)
dirtybird

I am running CENTOS 5 on my server and yes I am sure it is installed. It was working for a while during testing. I am not sure why it stopped. This is the last thing I need to fix before deployment.

Wed, 06/18/2008 - 07:47 (Reply to #5)
andreychek

Howdy,

Okay, CentOS has a nifty little configurator for switching between the various MTA's. I'm wondering if CentOS is currently setup for running Postfix by default.

Right now, if I run this on my CentOS box:

ls -l /etc/alternatives/mta

It shows that Postfix is currently active by it's link to the Postfix binary:

lrwxrwxrwx 1 root root 26 May 17 2007 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix

If I want to switch to Sendmail, I can then run:

/usr/bin/system-switch-mail-nox

Which is part of the system-switch-mail package (and not installed by default). It'll present you with the option of switching to Postfix / Sendmail, at which point you can choose Sendmail.

Does that by chance fix up your issue?
-Eric

Wed, 06/18/2008 - 08:28 (Reply to #6)
dirtybird

When I run that command I get <i>/etc/alternatives/mta -&gt; /usr/sbin/sendmail.postfix</i> which indicates that postfix is running as the mail server. When I run the second command I get <i>no such file or directory</i>. Which means the switch utility is not installed. Shouldn't I be able to correct this problem from within VA/WA??

Wed, 06/18/2008 - 08:38 (Reply to #7)
andreychek

Howdy,

&gt; Shouldn't I be able to correct this problem from within VA/WA??

Perhaps, though I'm unfortunately not familiar with how to do that. Maybe someone who's familiar with how to do that could answer that question... or when Joe and Jamie return from the conference they're at this evening, perhaps one of them will pipe up with how to go about that within Virtualmin.

What I can offer is that if you were to run this command:

yum install system-switch-mail

You could install the switch utility and use it to tell CentOS to use Sendmail rather than Postfix. But again, as you said, there may very well be a way within Virtualmin to accomplish that.
-Eric

Wed, 06/18/2008 - 12:06 (Reply to #8)
ronald
ronald's picture

i also can't provide with an adequate solution but if centos and virtualmin use Postfix by default then there must be a good reason. Perhaps the reasons they have, might make you reconsider using sendmail?

Wed, 06/18/2008 - 23:33 (Reply to #9)
sgrayban

Postfix is installed by default with VM install script.

The work around for this is to remove postfix then install sendmail AFTER the install of VM. If you add any domains before you do this sendmail aliases and addresses will not be ported over to sendmail.

Thu, 06/19/2008 - 09:55 (Reply to #10)
dirtybird

I installed the system-switch-mail utility and used that to change from postfix to sendmail. If someone figures out how to avoid this problem or how to change it from within Webmin/Virtualmin please let me know. Thanks to all who helped-dirtybird.

Thu, 06/19/2008 - 10:18 (Reply to #11)
Joe
Joe's picture

<div class='quote'>I installed the system-switch-mail utility and used that to change from postfix to sendmail. If someone figures out how to avoid this problem</div>

This is a perfectly valid approach--nothing wrong with it at all. system-switch-mail does make alternatives a little easier to use. If you have any trouble getting Virtualmin spinning with Sendmail, let us know. It's not our default, but we support it fully--just like Postfix. I just don't know as much about it, as it's been years since I've managed a Sendmail server. But lots of Sendmail users are roaming the halls around here, making ghoulish noises now and then. ;-)

At Scott's noisy insistence, we're working to make the Postfix part of the installation a little less pushy (Postfix will always be the default, but it will probably become possible to skip it during installation).

--

Check out the forum guidelines!

Wed, 07/30/2008 - 09:57 (Reply to #12)
dirtybird

I am still having problems getting rid of postfix after running the VM Pro install script. Did you get a chance to address this issue?

Topic locked