Re: setting sendmail.mc options?

2010-04-12 Thread Giorgos Keramidas
On Mon, 5 Apr 2010 03:53:18 -0700, Jeff Hamann 
jeff.ham...@forestinformatics.com wrote:
 I'm sure this isn't the correct place for this question, but I'm not
 sure where to go as I only use my FreeBSD Unleashed to admin my
 sendmail.

 I'm a newbie at this and could use a little help.

 I'm trying to configure sendmail, using the freebsd port, to only
 relay mail once a day (I hate emails every few minutes), and if
 possible to hold outbound mail in the que (I think there's some que)
 until some fixed time (like 7am) so that all my mail is transferred
 then.

 I've tried adding:

 #sendmail_flags=-bp -q480m and
 #sendmail_flags=-q120m

 after my

 sendmail_enable=YES

 and that didn't seem to work.

There are different options for each instance of Sendmail:

  $ grep 'sendmail.*flags' /etc/defaults/rc.conf
  sendmail_flags=-L sm-mta -bd -q30m # Flags to sendmail (as a server)
  sendmail_submit_flags=-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
  sendmail_outbound_flags=-L sm-queue -q30m # Flags to sendmail (outbound 
only)
  sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q30m
  $

So you have to set the sendmail_xxx_flags of the daemon you are using,
instead of the global sendmail_flags.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


setting sendmail.mc options?

2010-04-05 Thread Jeff Hamann
I'm sure this isn't the correct place for this question, but I'm not sure where 
to go as I only use my FreeBSD Unleashed to admin my sendmail. 

I'm a newbie at this and could use a little help. 

I'm trying to configure sendmail, using the freebsd port, to only relay mail 
once a day (I hate emails every few minutes), and if possible to hold outbound 
mail in the que (I think there's some que) until some fixed time (like 7am) so 
that all my mail is transferred then. 

I've tried adding:

#sendmail_flags=-bp -q480m and
#sendmail_flags=-q120m

after my 

sendmail_enable=YES

and that didn't seem to work. 

I've tried adding the following to my .mc file, 

define( 'confMIN_QUEUE_AGE', '360m' ) 

to my mc files. I then typed, make, make install, make restart from command 
line and it doesn't seem to change the behavior.

I'm sure this is a trivial config, but I'm a newbie at this and could use a 
little help. 


Thanks,
Jeff.


Jeff Hamann, PhD
PO Box 1421
Corvallis, Oregon 97339-1421
541-754-2457
jeff.hamann[at]forestinformatics[dot]com
http://www.forestinformatics.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org