1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/mail/smtpd/pkg-message
David E. O'Brien f3f020da65 Obtuse smtpd/smtpfwdd, part of the Juniper firewall toolkit
Submitted by:	Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>
1998-03-01 01:58:52 +00:00

34 lines
1.4 KiB
Plaintext

You must follow the next steps, as root, in order to finish the installation:
1) Make sure uucp is a trusted user to sendmail.
To do this, check if your sendmail.cf has a line with "Tuucp"
2) Disable sendmail from answering smtp requests, but make sure it
handles queue delivering. You have two choices:
a) Start sendmail without the "-bd" flag, but with the "-q30m" one.
b) Do not start sendmail as a daemon, and add an entry in /etc/crontab
to run sendmail -q when needed. For example, add the following line
to your /etc/crontab:
*/30 * * * * root /usr/sbin/sendmail -q
In any case, you'll most likely have to edit /etc/rc.conf to change
sendmail configuration.
3) Add smtpd to your inetd.conf:
smtp stream tcp nowait root /usr/local/sbin/smtpd smtpd
4) smtpd runs in a chrooted environment, so you must feed this environment
with any configuration file it needs. Make a copy of /etc/resolv.conf
and /etc/localtime to /var/smtpd/etc. If you ever change any of these
files, remember to change the copies also. Do not make a symbolic
link, as it will not work in the chrooted environment.
5) Create your own /var/smtpd/etc/smtpd_check_rules. There are some
examples in that directory. If have any problem, take a look at
http://www.obtuse.com/juniper-docs/man/smtpd_address_check.html.
6) Reboot ! (Or restart all those daemons manually, if you know how :^) )