summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-08-18The end of headers check that is used to determine where to insert ourGilles Chehade
Delivered-To header was wrong and could eventually lead to smtpd adding it too early and making the remaining headers appear as body part to MUAs. issue reported by Mathieu Goessens <gebura@poolp.org>
2009-08-18HEADS-UP: change the way sysmerge(8) runs by default.Antoine Jacoutot
Remove the '-a' switch (auto-mode) and make this behaviour the default. Add a new '-d' switch to get former default (full diff) mode. General idea ok for several. man page improvements from jmc@ ok jim@ oga@ sobrado@ ok sthen@ "sane defaults++ :)"
2009-08-17Don't try to move files that don't exist.Antoine Jacoutot
2009-08-17also report routers and their host states in relayctlReyk Floeter
ok pyr@, jmc@ for man bits
2009-08-17Switch several kerberos/afs tools from using using libreadlineJonathan Gray
to libedit to prevent the resulting binaries from falling under the GPL. Prototypes are internally defined so no includes have to be changed. ok miod@ reyk@ "I very much approve" deraadt@
2009-08-16Properly initialize the array setting auto-upgradable files.Antoine Jacoutot
ok sthen@
2009-08-16parse "nameserver [host]:port" syntax in /etc/resolv.confStefan Sperling
ok deraadt@
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.Igor Sobrado
ok jmc@
2009-08-14SENSOR_WATTS; ok reyk deraadtConstantine A. Murenin
2009-08-14do not timeout disabled hosts in the icmp checksReyk Floeter
Thanks to Sebastian Benoit, closes pr6146
2009-08-14SENSOR_WATTS; ok canacar deraadt kettenis henningConstantine A. Murenin
2009-08-13fix ID string; from Alan R. S. BuenoJason McIntyre
2009-08-13add new 'router' functionality to dynamically add or remove routesReyk Floeter
based on health check results, using the existing table syntax. this allows to maintain multiple (uplink) gateways to implement link balancing or WAN link failover if no routing protocol or other keepalive method is available. works fine with or without net.inet.ip.multipath enabled. ok pyr@, jmc@ for manpages
2009-08-12Update nlist array and uncomment a few things to pave the way for upcomingMiod Vallat
new name cache information gathering code.
2009-08-12Namecache revamp.Bob Beck
This eliminates the large single namecache hash table, and implements the name cache as a global lru of entires, and a redblack tree in each vnode. It makes cache_purge actually purge the namecache entries associated with a vnode when a vnode is recycled (very important for later on actually being able to resize the vnode pool) This commit does #if 0 out a bunch of procmap code that was already broken before this change, but needs to be redone completely. Tested by many, including in thib's nfs test setup. ok oga@,art@,thib@,miod@
2009-08-12Fix unwanted rejects by parsing (and ignoring) AUTH=<...> MAILJacek Masiulaniec
command argument. Testers, you want this. Committing on gilles@'s behalf.
2009-08-12change some defaults inside amd itself, so that the rc scripts no longerTheo de Raadt
have to pass those options. this makes amd much easier to restart by hand (though it still remains a nasty daemon do that with) ok millert
2009-08-11call reset_flags in bounce_session failure code path.Jacek Masiulaniec
2009-08-11do not repeat flag resetting code, introduce reset_flags().Jacek Masiulaniec
discussed with gilles
2009-08-10build on amd64 alsoJonathan Gray
ok deraadt@
2009-08-09Scale both receive and send buffer on the raw socket. The default 8192Claudio Jeker
bytes is not enough for larger networks causing send errors because of too big packets. OK henning
2009-08-08- simplify a bit queue_message_update()Gilles Chehade
- make sure queue_message_update() creates bounces using bounce_record() - when mta sends update to queue and it sees that batch is flagged with F_BATCH_PERMFAIL, only update the envelope error message if it doesn't have F_MESSAGE_PERMFAIL set, otherwise we may lose the real reason why we failed for that recipient. There's cleanup to do around that old code, i'm sure we can get it simpler. this commit fixes a bug pea@ spotted where a bounce message would not display the reason of a failure when we generated it after failing to deliver a relayed message.
2009-08-08sync with code change for mailq in smtpctlIan Darwin
2009-08-08mailq is a common sendmail alias for showing the queue; make smtpctlIan Darwin
implement this, ignoring sendmail options for now. OK gilles@, jackekm@
2009-08-08better synopsis;Jason McIntyre
2009-08-08Make imsg_clear close and free any fds in the received fd queue as well asNicholas Marriott
freeing the msgbuf. While here also remove an unnecessary while loop. ok eric pyr
2009-08-08add a real synopsis to chat(8); synchronize synopsis and usage;Igor Sobrado
sort flags in the DESCRIPTION section of the manual page. synopsis tweaked by jmc@ ok jmc@, martynas@
2009-08-08fix a small typo with no consequence in the generation of message id whenGilles Chehade
an enqueued message follows the offline codepath. the code used ',' to separate components of the message uid when it should have used '.'
2009-08-08missing castGilles Chehade
2009-08-08missing headerGilles Chehade
2009-08-08import some changes from portable smtpd to reduce the delta between both.Gilles Chehade
this commit contains mostly missing casts and cosmethic changes, do not expect to build this anywhere but on OpenBSD, it does not contain any of the portable glue.
2009-08-07smtp_session: ssl/ssl.h -> openssl/ssl.hGilles Chehade
2009-08-07in mta: ssl/ssl.h -> openssl/ssl.h, consistent with other filesGilles Chehade
2009-08-07we were linking to libkeynote to use kn_base64_encode/decode, but honestlyGilles Chehade
this was a ugly hack, and i'd rather include resolv.h and use __b64_encode and __b64_decode as openssh does. this commit kills all references to libkeynote in smtpd, should help a bit with porting ... no functionnal change.
2009-08-07wrap auth_userokay in a new function authenticate_user() and make sureGilles Chehade
that only authenticate.c knows about bsd_auth, no functionnal change.
2009-08-07get the default ttl via sysctl instead of using IPDEFTTLReyk Floeter
2009-08-07rename 'struct session' to 'struct rsession' because it conflicts withReyk Floeter
another 'struct session' in sys/sysctl.h.
2009-08-07allow to modify the IP TTL value for host checks. this can be used toReyk Floeter
check if the host is only n hops away and not re-routed over a longer path.
2009-08-07add missing lineReyk Floeter
2009-08-07allow to specify host attributes in an arbitrary order (parent, retry) byReyk Floeter
making the grammar a bit more flexible.
2009-08-07cosmetic change - move address into an own elementReyk Floeter
2009-08-07pull aml/aml_parse.h; otherwise it would take aml_parse_objectlistMartynas Venckus
as an int; and not a pointer; which would be wrong on 64-bit archs oki marco@
2009-08-06fix a crash in mta when forwarding a bounce, caused by a null derefGilles Chehade
2009-08-06in smtp_session, fix logging so that when we accepted an empty envelope forGilles Chehade
the sender, we dont log 'from=<@>' but from=<> instead
2009-08-06- change all occurences of T_DAEMON_BATCH,MESSAGE to T_BOUNCE_BATCH/MESSAGEGilles Chehade
- make sure T_BOUNCE_MESSAGE is no longer OR-ed to T_MDA/MTA_MESSAGE - define F_MESSAGE_BOUNCE flag and make sure bounce sessions set it - teach smtpctl show queue how to recognize a bounce message
2009-08-06replace X-OpenSMPTD-Loop with Delivered-ToGilles Chehade
idea by jacekm@ a few weeks ago, discussed with pyr
2009-08-06when writing a bounce, follow the same rule as for mta sessions and prependGilles Chehade
with a dot lines starting with a dot
2009-08-06when a message in queue expires, generate a bounce before we remove itGilles Chehade
2009-08-06factorize file_copy_session() and file_copy() so file_copy() can handleGilles Chehade
both deliveries to mailboxes (mbox/maildir) and copying to a session.
2009-08-06fix a typo in bounce message t -> toGilles Chehade