aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/sendmail
Commit message (Collapse)AuthorAgeFilesLines
* Move rc startup scripts from etc/ to sbin/init/Brad Davis2018-07-281-229/+0
| | | | | | | | | | | This keeps most startup scripts as CONFS per discussion on src-committers from back during BSDCan. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16466 Notes: svn path=/head/; revision=336845
* Only create /var/log/sendmail.st if start sendmail.Brad Davis2018-06-061-0/+4
| | | | | | | | | For those of us that never use or start sendmail, it is unneeded. Approved by: bapt (mentor) Notes: svn path=/head/; revision=334700
* Fix 'restart' action: rc.subr only expects to restart one service, not two.Gregory Neil Shapiro2017-06-121-0/+3
| | | | | | | | | PR: 217393 Reported by: Martin Simmons MFC after: 1 week Notes: svn path=/head/; revision=319843
* etc: minor spelling fixes.Pedro F. Giffuni2016-05-011-2/+2
| | | | | | | | | Mostly comments but these tend to be user-visible. MFC after: 2 weeks Notes: svn path=/head/; revision=298887
* - Add descriptions to most of the rc scripts. Those are mostly taken from theirLars Engels2016-04-231-0/+1
| | | | | | | | | | | daemon's manpage and probably improved. - Consistently use "filesystem" not "file system". Approved by: bapt, brueffer Differential Revision: D452 Notes: svn path=/head/; revision=298514
* Enable the automatic creation of a certificate (if one does not exists)John-Mark Gurney2013-10-191-0/+125
| | | | | | | | | | | | | | | | | | | | and enable the usage by sendmail if sendmail is enabled. Include and document knobs to disable this feature and also set the Common Name of the certificate created. As the certificate is signed w/ a discarded key, it only helps prevent Eve, but not Malory from knowing the contents of the emails. This means that new installs (and people that use the updated freebsd.mc file) will automaticly have STARTTLS enabled allowing incoming email to be encrypted in most cases. Reviewed by: gshapiro MFC after: 3 days Security: Yes, please. Notes: svn path=/head/; revision=256773
* - Fix pidfile handling in sendmail_msp_queue. The pidfile was ignoredHiroki Sato2013-09-171-5/+2
| | | | | | | | | | | | and multiple instances were invoked by start/stop cycles. - Remove redundant start_cmd rewrite. Approved by: re (gjb) Tested by: jmg Notes: svn path=/head/; revision=255654
* Simply things so that "#REQUIRE: FILESYSTEMS" means the fileDavid E. O'Brien2012-09-111-1/+1
| | | | | | | | | | | | | | systems are fully "ready to go". 'FILESYSTEMS' states: "This is a dummy dependency, for services which require file systems to be mounted before starting." However, we have 'var' which is was run after 'FILESYSTEMS' and can mount /var if it already isn't mounted. Furthermore, several scripts cannot use /var until 'cleanvar' has done its thing. Thus "FILESYSTEMS" hasn't really meant all critical file systems are fully usable. Notes: svn path=/head/; revision=240336
* Prepare for the removal of set_rcvar() by changing the rcvar=Doug Barton2012-01-141-3/+3
| | | | | | | | | | | | | | | | | | assignments to the literal values it would have returned. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps. Notes: svn path=/head/; revision=230099
* Add the shutdown KEYWORD to those scripts that start persistent servicesDoug Barton2008-07-161-0/+1
| | | | | | | | | | | | | | to allow them to do a "clean" shutdown. I purposely avoided making changes to network-related stuff since the system shutting down is pretty conclusive, and there may be complicated dependencies on the network that I would rather not try to unravel. I also skipped kerberos-related stuff for the reasons above, and because I have no way to test it. Notes: svn path=/head/; revision=180564
* Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d filesDoug Barton2007-12-081-1/+0
| | | | | | | | with theirs, so this information doesn't need to be in the live file. Having it in our CVS history is enough. Notes: svn path=/head/; revision=174438
* Add a new rc.conf variable, sendmail_rebuild_aliases, which tellsGregory Neil Shapiro2007-06-121-8/+10
| | | | | | | | | | | | | | | | | | /etc/rc.d/sendmail whether or not to run newaliases if the database is missing or the aliases text file is newer than aliases.db. In my opinion, the aliases file should never be automatically rebuilt. The current text form could represent a work in progress. Therefore, in FreeBSD 7.0, this new option will default to "NO". When this rc.d change is MFC'ed, it will need to remain "YES" to maintain backward compatibility. PR: conf/86252 Approved by: re (kensmith) MFC after: 3 days Notes: svn path=/head/; revision=170618
* Use ${name} in pathnames where appropriate.Yaroslav Tykhiy2005-10-281-3/+3
| | | | | | | | The sendmail script already was on this way, but it didn't reach the end of it yet. Notes: svn path=/head/; revision=151809
* Be sure to execute sendmail_precmd() to check sendmail.cf conflicts andGregory Neil Shapiro2005-08-301-0/+1
| | | | | | | | | | | rebuild the aliases file if necessary. PR: conf/72910 Submitted by: matteo@ MFC after: 3 days Notes: svn path=/head/; revision=149606
* "REQUIRE: cleanvar" for all RC's writing into /var/run.David E. O'Brien2005-01-161-1/+1
| | | | Notes: svn path=/head/; revision=140339
* Remove the requirement for the FreeBSD keyword as it no longerMike Makonnen2004-10-071-1/+0
| | | | | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days Notes: svn path=/head/; revision=136224
* Fix the startup logic for sendmail. If sendmail_enable=yes, don't startGregory Neil Shapiro2004-08-051-10/+11
| | | | | | | | | | | | | | | | | | the submit and outbound daemon, else if sendmail_submit_enable=yes, don't start the outbound daemon. Only one daemon should be started. Also, do not rebuild database maps at boot time. The code didn't pay attention to SENDMAIL_MAP_TYPE and assumed 'hash'. Also, admins may not want maps automatically rebuilt just because the back end database has changed. Finally, some maps are built with mode tools than just makemap (e.g., using cidrexpand on the access text file before sending it to makemap). Noticed by: ache Reviewed by: ache Notes: svn path=/head/; revision=133150
* sendmail_submit_enable and sendmail_outbound_enable checks were reverted.Max Khon2004-04-171-2/+2
| | | | | | | Found by: Morten Rodal <morten@rodal.no> Notes: svn path=/head/; revision=128366
* Allow this script to be used for Postfix:Max Khon2004-04-051-3/+4
| | | | | | | | | | - Use sendmail_foo variables after load_rc_config so that they actually work. - Utilize sendmail_procname. - Check sendmail_submit_enable instead of sendmail_enable when dealing with mail submission MTA. Notes: svn path=/head/; revision=127896
* Luke Mewburn has indicated that they (NetBSD) are not interestedMike Makonnen2004-01-171-44/+28
| | | | | | | | | | | | in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary). The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions. Notes: svn path=/head/; revision=124622
* Luke Mewburn has indicated that they (NetBSD) are not interestedMike Makonnen2004-01-171-1/+1
| | | | | | | | | in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated than necessary), starting with the NetBSD KEYWORD. Notes: svn path=/head/; revision=124616
* Fix style bugs:Jens Schweikhardt2002-10-121-1/+1
| | | | | | | | | | | | | * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line. Approved by: silence from gordon Notes: svn path=/head/; revision=104980
* Fix sendmail to use checkyesno since rc.conf is no longer re'sourced from theGordon Tetlow2002-09-121-6/+2
| | | | | | | debug statement. Notes: svn path=/head/; revision=103264
* Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation onGordon Tetlow2002-09-061-2/+2
| | | | | | | OS-dependent case switches. Notes: svn path=/head/; revision=103019
* Commit a revised sendmail script that works the same way as rc.sendmail.Gordon Tetlow2002-09-021-30/+43
| | | | | | | This should also quell warnings when sendmail_enable="NONE" Notes: svn path=/head/; revision=102864
* Make sendmail really not start when sendmail_enable="NONE"Gordon Tetlow2002-06-151-1/+1
| | | | | | | | Submitted by: Dennis Kristensen <snicki@snicki.dk> Reviewed by: Mike Makonnen <makonnen@pacbell.net> Notes: svn path=/head/; revision=98261
* Merge in all the changes that Mike Makonnen has been maintaining for aGordon Tetlow2002-06-131-9/+51
| | | | | | | | | | | while. This is only the script pieces, the glue for the build comes next. Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson Notes: svn path=/head/; revision=98184
* Import the NetBSD 1.5 RC system.David E. O'Brien2001-06-161-0/+60
Note that `rc' and `rc.shutdown' could not be imported because we already have files with those names. Notes: svn path=/vendor/NetBSD/dist/; revision=78344