This is a request for enhancement rather than a real bug...
At the end of /etc/mail/sendmail.mc, there is a line saying:
## Custom configurations below (will be preserved)
However, some of the custom configuration must appear above
the MAILER definitions to have any effect. I have a dialup PPP
connection, and I want the system to queue all non-local mail (it
will be sent when "sendmail -q" is run from the /etc/diald/ip-up
script) to avoid bringing up the PPP connection unnecessarily.
At the same time, I want local mail to be delivered immediately.
I added the following lines to my /etc/mail/sendmail.cf:
define(`confCON_EXPENSIVE', `True')dnl
define(`confDIAL_DELAY', `10s')dnl
define(`SMART_HOST', `<mail server hostname>')dnl
define(`SMTP_MAILER_FLAGS', `e')dnl
Now, for SMTP_MAILER_FLAGS to work (the "e" flag means that the
smtp mailer is expensive), it must appear above MAILER(smtp)dnl -
and thus above the "Custom configurations" line, but then it
won't be preserved when sendmailconfig is run next time.
Suggestions:
- allow local configuration at the beginning of /etc/mail/sendmail.mc
(maybe include another, local m4 file?),
- add support for the configuration mentioned above (which might be
useful for other people with dialup PPP) to sendmailconfig.
Marek