I know this is almost embarrassing, but it happened to me anyway.
I have a server here running Fedora 10, with sendmail (8.14.3) on it. The MTA is only used to send messages from the localhost to a smarthost. This used to work fine, except I needed to change that smarthost, as it has been replaced by another machine with different IP address and different DNS name (during the course of an internal streamlining effort).
I followed some instructions I found on a forum somewhere and added a line to the mailertable, like this:
aminocom.com ESMTP:[mail.aminocom.com]where mail.aminocom.com is the name of the internal smarthost.
Then I used the m4 utility to create new .cf files and restarted sendmail. And bang, I get the following error:
service sendmail restart Shutting down sm-client: [FAILED] Shutting down sendmail: [ OK ] Starting sendmail: [ OK ] Starting sm-client: No local mailer defined QueueDirectory (Q) option must be set [FAILED]
I have googled this, but I come up mostly with forum posts that nobody responded to.
According to sendmail.cf, the QueueDirectory is defined. And there seems to be next to no information available anywhere as to how to define a local mailer???? Plus: when I use the m4 utility to also re-create submit.cf, the resulting file is not accepted and throws an error like this:
Starting sm-client: /etc/mail/submit.cf: line 0: invalid argument to V line: "ERSIONID(linux setup"
And this, even though the submit.mc file is exactly the same as on another server (also running Fedora 10 with sendmail), where everything works perfectly fine.
Ideally I would love to just ditch sendmail altogether and use exim, but in this particular case I haven't got that choice. So, could anybody please point me in the right direction?