On Oct 12, Al Youngwerth wrote > >> I use a debian box running smail as our local and Internet mail server for > >> our lan. Is there an easy way I can setup smail to process mail that should > >> be delivered locally immediately but queue up mail bound for the Internet > >> and send it all out once every 30 minutes? > >> > >> Thanks in advance, > >> > >> > >> Al Youngwerth > >> [EMAIL PROTECTED]
I'm no email expert at all, but I have the basics of this working for exim (like smail). I attach my exim.conf - basically use "queue_smtp" - this will resolve the names, but only send local ones. Then use "exim -qf" to force a retry. I do this when I dial-up to my ISP, but you could just stick it in your crontab. qualify_domain = localhost qualify_recipient = localhost local_domains = wyvern:localhost receiver_unqualified_nets = * local_domains_include_host = true local_domains_include_host_literals = true never_users = root trusted_users = mail gecos_pattern = ^([^,:]*) gecos_name = $1 # added by apb queue_smtp = true received_header_text = "Received: \ ${if def:sender_fullhost {from ${sender_fullhost} \ ${if def:sender_ident {(${sender_ident})}}\n\t}\ {${if def:sender_ident {from ${sender_ident} }}}}\ by ${primary_hostname} \ ${if def:received_protocol {with ${received_protocol}}} \ (Exim ${version_number} #${compile_number})\n\t\ id ${message_id} (Debian)" end ###################################################################### # TRANPORTS CONFIGURATION # ###################################################################### local_delivery: driver = appendfile; group = mail mode = 0660 file = /var/spool/mail/${local_part} address_pipe: driver = pipe; address_file: driver = appendfile address_reply: driver = autoreply # General configuration for SMTP delivery #smtp: # driver = smtp; # transport smtp_appendfile: driver = appendfile; directory = /var/spool/exim/output/${host}, bsmtp = all, prefix =, suffix =, user = mail remote_smtp: driver = smtp; end ###################################################################### # DIRECTORS CONFIGURATION # ###################################################################### real_local: prefix = real-, driver = localuser, transport = local_delivery; system_aliases: driver = aliasfile; file = /etc/aliases, search_type = lsearch # user = list # Uncomment the above line if you are running smartlist userforward: no_verify, driver = forwardfile; file = .forward, filter local: driver = localuser, transport = local_delivery; end ###################################################################### # ROUTERS CONFIGURATION # ###################################################################### lookuphost: driver = domainlist, transport = remote_smtp; route_list = * mail.isp.com byname end ###################################################################### # RETRY CONFIGURATION # ###################################################################### # Domain Error Retries # ------ ----- ------- #* * F,2h,15m; G,16h,2h,1.5; F,4d,8h * * F,10d,2d email: [EMAIL PROTECTED] | Artificial intelligence - the http://www.poboxes.com/adrian.bridgett | art of making computers act PGP key available on public key servers | like those in the movies -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .