Today I upgraded my mail server from OpenBSD 3.7 to 4.0 (patches 2 thru 10 applied) and even though "ps -aux" shows "sendmail: accepting connections (sendmail)" I'm not getting any incoming messages. I tried several times to send myself messages and had others send me messages from various services but noting is coming in.
To create my "sendmail.cf" file I started with "openbsd-proto.mc" and filled in my domain information. My "my.mc" file is (minus the "dnl" lines: divert(-1) divert(0)dnl VERSIONID(`@(#)openbsd-proto.mc $Revision: 1.11 $')dnl OSTYPE(openbsd)dnl define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy,nobodyreturn')dnl define(`confCW_FILE', `-o MAIL_SETTINGS_DIR`'local-host-names')dnl define(`confCT_FILE', `-o MAIL_SETTINGS_DIR`'trusted-users')dnl define(`confLOG_LEVEL',`15')dnl FEATURE(nouucp, `reject')dnl FEATURE(`access_db', `hash -o -T<TMPF> /etc/mail/access')dnl FEATURE(`blacklist_recipients')dnl FEATURE(`use_cw_file')dnl FEATURE(`mailertable', `hash -o /etc/mail/mailertable')dnl FEATURE(`use_ct_file')dnl FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable')dnl FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl FEATURE(always_add_domain)dnl FEATURE(redirect)dnl FEATURE(`no_default_msa')dnl DAEMON_OPTIONS(`Family=inet, Address=0.0.0.0, Name=MTA')dnl DAEMON_OPTIONS(`Family=inet6, Address=::, Name=MTA6, M=O')dnl DAEMON_OPTIONS(`Family=inet, Address=0.0.0.0, Port=587, Name=MSA, M=E')dnl DAEMON_OPTIONS(`Family=inet6, Address=::, Port=587, Name=MSA6, M=O, M=E')dnl CLIENT_OPTIONS(`Family=inet, Address=0.0.0.0')dnl CLIENT_OPTIONS(`Family=inet6, Address=::')dnl define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl MASQUERADE_AS(`my-company.com')dnl FEATURE(masquerade_envelope)dnl FEATURE(masquerade_entire_domain)dnl MAILER(local)dnl MAILER(smtp)dnl LOCAL_RULESETS HMessage-Id: $>CheckMessageId SCheckMessageId R< $+ @ $+ > $@ OK R$* $#error $: 553 Header Error I've removed the "STARTTLS" and "CLAMAV" settings I was using. I copied the "/etc/mail" files from my previous installation: - relay-domains (contains my domain) - local-host-names (contains various names for my server) - aliases (aliases.db created using: newaliases) - access (access.db created using: makemap hash /etc/mail/access < /etc/mail/access) - all other /etc/mail files are unchanged I also set the "confLOG_LEVEL" to 15 so that I can see more information on the incoming and outgoing messages thinking that would help. I see nothing for incoming message but lots of information on outgoing messages. "sendmail.cf" was created and sendmail was started using: cd /usr/share/sendmail/cf m4 /usr/share/sendmail/m4/cf.m4 my.mc > my.cf mv my.cf /etc/mail/sendmail.cf kill `head -1 /var/run/sendmail.pid` /usr/sbin/sendmail -L sm-mta -C/etc/mail/sendmail.cf -bd -q30m These lines from "pf.conf" in my firewall redirect incoming traffic to my mail server. This worked before I upgraded. ext_if = "xl2" myAddress = "192.168.0.1" mailServer = "192.168.2.2" rdr on $ext_if proto tcp from any to $myAddress port 25 -> $mailServer port 25 My ISP supplies a router/DSL modem (Cayman Model 3346 DSL Ethernet Switch) and I've redirected all it's incoming traffic to my firewall. I don't know what might have changed from OpenBSD 3.7 to 4.0 in sendmail. Does anyone have suggestions for what might be the problem with sendmail? I wouldn't think my ISP would block my incoming messages.