summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
AgeCommit message (Collapse)Author
2015-11-30update to.c to fix IPv6 address parsing in smtpd.conf, while at it allowGilles Chehade
use of tls+backup:// schema for relaying over TLS to primary MX ok sunil@, ok jung@
2015-11-30mechanical rename of some IMSG constantsGilles Chehade
ok sunil@, ok jung@
2015-11-30While delivering to lmtp or mda, accept optional "as user" parameterSunil Nimmagadda
whose privileges would be used instead of the default. Ok gilles@ jung@
2015-11-30remove mailaddr_to_username(), no longer neededGilles Chehade
suggested by jung@
2015-11-30teach aliases expansion how to deal with user+tagGilles Chehade
ok sunil@, ok jung@
2015-11-26Don't dereference a route and then reference it again. In this particular case,Tim van der Molen
the route would be referenced at least twice, so there is no use after free. Prompted by a mail from David CARLIER to misc@opensmtpd. OK eric@
2015-11-24add filter.c plumbing, not linked to the build, not used yetGilles Chehade
ok sunil@, ok jung@, ok eric@
2015-11-24teach table_db and table_static about mailaddr maps (unused yet)Gilles Chehade
ok sunil@, ok jung@
2015-11-23allow table API to lookup for mailaddr mappingsGilles Chehade
ok sunil@, ok jung@
2015-11-23strings.h -> string.hGilles Chehade
ok sunil@
2015-11-23cleanupGilles Chehade
2015-11-23Restructure bounce content as a multi-part MIME message.Sunil Nimmagadda
Content-Type header diff from Philipp Takacs <philipp<at>bureaucracy.de> Ok gilles@ jung@
2015-11-05replace u_char and u_int* with standard stdint.h types to ease portable versionJoerg Jung
also remove trailing whitespaces while here no binary change ok sunil millert gilles
2015-11-05Implement smtpctl uncorrupt <msgid>Sunil Nimmagadda
"uncorrupt" moves envelopes from corrupt bucket back to the queue for further discovery by the daemon. After correcting the corrupt envelopes, admin could now... # smtpctl uncorrupt msgid # smtpctl discover msgid to schedule the messages. Ok gilles@
2015-11-05Do not terminate message walk on a corrupt envelope.Sunil Nimmagadda
Ok gilles@
2015-11-05when a message consists solely of headers and does not end them with anGilles Chehade
empty line, the message parser gets confused, and forgets to flush last header to message file. detect if we're still in headers when hitting EOM, and flush if that is the case. reported by Philipp Takacs <philipp@bureaucracy.de> ok millert@, jung@, sunil@, eric@
2015-11-03Blank line after pledge call.mmcc
2015-10-29Implement smtpctl discover <evpid|msgid>.Sunil Nimmagadda
discover subcommand schedules envelopes manually moved to the queue. It triggers a queue walk searching for envelopes with the given id, schedules them and informs the user number of envelopes scheduled. Admins no longer would need to restart the daemon to discover manually moved messages. Ok gilles@
2015-10-28masquerade and senders map require being able to lookup mailaddr structuresGilles Chehade
in tables, prepare for such features by bringing the helpers + smtpd.h part ok millert@
2015-10-28various macro fixes;Jason McIntyre
2015-10-28remove old check on username length that simply makes no sense nowadaysGilles Chehade
ok millert@ sunil@
2015-10-28dns_lookup_host() needs to remove brackets and IPv6: prefix when receivingGilles Chehade
a text representation otherwise getaddrinfo_async() will choke ok eric@
2015-10-28aliases support resolving to maildir:/pathGilles Chehade
ok sunil@ millert@
2015-10-28Remove dead code.Sunil Nimmagadda
Ok jung@ gilles@
2015-10-27add a rcpt-to parameter to be able to use the original (probably expanded)Joerg Jung
RCPT TO within LMTP sessions ok gilles eric
2015-10-27delivery lmtp gets fed with a message file as input which is guaranted to haveJoerg Jung
\n-terminated lines, so no need to strip \r here also remove an unneeded len assignment while here discussed with and ok gilles
2015-10-27enqueue pledge: getmailname() needs dns, ~/dead.letter needs cpath/wpathGilles Chehade
ok jung@, ok millert@
2015-10-27aliases_virtual_check() has been unneeded for a whileGilles Chehade
ok jung@, ok sunil@, ok millert@
2015-10-26Fix makemap(8) for values containing a '#'.Sunil Nimmagadda
Ok millert@ gilles@
2015-10-26remove unneeded pidfile() from smtpdJoerg Jung
ok gilles
2015-10-26avoid a potential double freeJonathan Gray
ok gilles@
2015-10-24add -h flag to SYNOPSIS as wellJoerg Jung
prodded and ok jmc
2015-10-23document -h flag and add a .XrJoerg Jung
ok sunil millert
2015-10-22delivery to maildir needs pledge fattrGilles Chehade
from Gregor Best <gbe@unobtanium.de>
2015-10-21Use SSL_CTX_set_ecdh_auto() instead of rolling our own version.Joel Sing
ok gilles@
2015-10-21Only enable SSL_VERIFY_PEER when the verify option is set on a listener.Joel Sing
Always enabling SSL_VERIFY_PEER unnecessarily increases the number of messages/bytes in the TLS handshake and increases our attack surface, since we request and then process client certificates. ok gilles@
2015-10-19Kill whitespace at eol.Sunil Nimmagadda
Ok gilles@
2015-10-18fix lmtp delivery regressions introduced in previous:Joerg Jung
- strip \r\n and add them explicitly to all DATA lines - fix DATA termination - add missing QUIT command (and check for reply) - remove free() and fclose() and use exit(3) instead of _exit(2) to handle cleanup ok sunil gilles
2015-10-17mailaddr_match() allows comparing two struct mailaddr taking into accountGilles Chehade
catchall and +-tags ok millert@ and jung@ for util.c
2015-10-17makemap shout strip initial and trailing whitespaces using strip()Gilles Chehade
ok millert@, ok jung@
2015-10-17document handling of comments in makemapGilles Chehade
ok millert@, ok sunil@, ok jung@
2015-10-17both of these are deprecatedGilles Chehade
2015-10-17Convert some fgetln to getline.Sunil Nimmagadda
tested and ok gilles@
2015-10-17Cleanup and simplify LMTP code.Sunil Nimmagadda
Ok millert@ gilles@
2015-10-17LMTP delivery requires "inet unix".Sunil Nimmagadda
Ok millert@ gilles@
2015-10-17this file is deprecatedGilles Chehade
2015-10-17remove unused variablesGilles Chehade
2015-10-17KNFGilles Chehade
2015-10-17our strip() function should use isspace()Gilles Chehade
ok jung@, ok millert@
2015-10-17smtpd starts rather robustly with a gigantic pledge request group (keepTheo de Raadt
in mind that a gigantic group is already < ~50% of POSIX). It then grinds these down bit by bit as it sets up privsep for the various processes. At startup, smtpd will need the new "id" request as well. ok gilles tedu