Re: enabling sendmail
- Marc Espie es...@nerim.net [2013-02-24 13:21:09 +0100] - : On Sun, Feb 24, 2013 at 08:57:14AM +, James Griffin wrote: - rich...@thornton.net rich...@thornton.net [2013-02-21 00:29:45 +] - : Is sendmail enabled by default? If not, how do I do that? It's not enabled by default. And you need to copy /usr/share/sendmail/cf/openbsd-proto.mc to your hostname.mc; edit it with your requirements, then use make(1) on your hostname.mc file and copy the resulting hostname.cf file to /etc/mail/sendmail.cf. NO, sendmail *is* enabled by default. It has a minimal configuration that just makes sure the daily/weekly/monthly emails reach some configuration. Of course, you're right. I meant really that it's not enabled for internet mail by default. My comment was misleading. It's trivial to get it set up. Look at the docs, and you'll have it up and running in no time. -- Primary Key: 4096R/1D31DC38 2011-12-03 Key Fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Re: enabling sendmail
- rich...@thornton.net rich...@thornton.net [2013-02-21 00:29:45 +] - : Is sendmail enabled by default? If not, how do I do that? It's not enabled by default. And you need to copy /usr/share/sendmail/cf/openbsd-proto.mc to your hostname.mc; edit it with your requirements, then use make(1) on your hostname.mc file and copy the resulting hostname.cf file to /etc/mail/sendmail.cf. So: cd /usr/share/sendmail/cf cp openbsd-proto.cf hostname.mc vi hostname.mc make hostname.mc cp hostname.cf /etc/mail/sendmail.cf vi /etc/rc.conf.local (enter the appropriate flags to $sendmail_flags) Or you can use $sendmail_flags in /etc/rc/conf.local to point to the hostname.cf file in /usr/share/sendmail/cf/ . It's better to rename the openbsd-proto.mc to something relevant as that file gets replaced on upgrades; your renamed file won't. The same is true for the /etc/mail/sendmail.cf - it could get over-written during upgrade unless you tell sysmerge(8) not to. The entry in /etc/rc.conf.local if you have copied your hostname.cf file to /etc/mail/sendmail.cf would be something like this: sendmail_flags=-L sm-mta -bd -q30m The flags would obviously be different if you choose to leave your hostname.cf file in /usr/share/sendmail/cf/ . Does that make sense? -- Primary Key: 4096R/1D31DC38 2011-12-03 Key Fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Re: enabling sendmail
On Sun, Feb 24, 2013 at 08:57:14AM +, James Griffin wrote: - rich...@thornton.net rich...@thornton.net [2013-02-21 00:29:45 +] - : Is sendmail enabled by default? If not, how do I do that? It's not enabled by default. And you need to copy /usr/share/sendmail/cf/openbsd-proto.mc to your hostname.mc; edit it with your requirements, then use make(1) on your hostname.mc file and copy the resulting hostname.cf file to /etc/mail/sendmail.cf. NO, sendmail *is* enabled by default. It has a minimal configuration that just makes sure the daily/weekly/monthly emails reach some configuration. In order to have to make it do something more, you have to change the configuration indeed. but for now, sendmail is on by default (even if useless for anything but localhost), and it's also the default mailer, as /etc/mailer.conf shows.
Re: enabling sendmail
Yes and you don't have to do anything, unless you need to enable a different set of sendmail rules but that will depend on what you want to accomplish. -luis On Wed, Feb 20, 2013 at 6:29 PM, rich...@thornton.net wrote: Is sendmail enabled by default? If not, how do I do that?
Re: enabling sendmail
On 02/24/13 12:54, Luis Coronado wrote: Yes and you don't have to do anything, unless you need to enable a different set of sendmail rules but that will depend on what you want to accomplish. -luis On Wed, Feb 20, 2013 at 6:29 PM, rich...@thornton.net wrote: Is sendmail enabled by default? If not, how do I do that? Have a look in man afterboot, it has a section on sendmail
Re: enabling sendmail
In addition to what others have said, default sendmail listens on 127.0.0.1, so you will require configuration to get it going. On that note, also look at smtpd - it's sendmail without the complexity! -ag -- sent via 100% recycled electrons from my mobile command center. On Feb 20, 2013, at 4:29 PM, rich...@thornton.net wrote: Is sendmail enabled by default? If not, how do I do that?