On Fri, 2 May 2008, Zbigniew Szalbot wrote: > I am confused. How should then dkim-filter be started? > > 1/ by calling /usr/local/libexec/dkim-filter -x > /usr/local/etc/mail/dkim-filter.conf? > I would have to add a cron job to make sure it is started when system > reboots?
You shouldn't use cron to start things on boot. That's what the /etc/rc* scripts are for. > 2/ by setting /etc/rc.conf entry? I already have: > milterdkim_enable="YES" > milterdkim_uid='mailnull' > milterdkim_cfgfile="/usr/local/etc/mail/dkim-filter.conf" > As you can see there is no -p switch but when the filter starts, the -p > switch is used as can be seen from the maillog. Also, with this way of > starting I cannot telnet to port 4445. The script which controls dkim-milter is adding a "-p" to the command line. I can see it in the files that come down when you install the port. The variable you need to set in /etc/rc.conf to change it appears to be "milterdkim_socket". > I guess I would like to know what settings to use in /etc/rc.conf to > make sure the filter reads all config from > /usr/local/etc/mail/dkim-filter.conf file. The three settings displayed > above seem not to suffice. It looks to me like the following have command-line overrides in the port's start script: -u (UserID) controlled by "milterdkim_uid" -p (Socket) controlled by "milterdkim_socket" -x controlled by "milterdkim_cfgfile" -d (Domain) controlled by "milterdkim_domain" -s (Selector) controlled by "milterdkim_selector" There's also a "milterdkim_flags" which contains a bunch of other things also provided to the filter on the command line. The default is "-b sv -c simiple/simple -m MSA", which means Modes, Canonicalization and MTA also have command line overrides. If you want to control those you'll have to set that variable to the empty string in /etc/rc.conf. The port maintainer is on this list; perhaps he/she could comment further. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ dkim-milter-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss
