H?P?Return-Path: blah-blah
but it does not seem
to work. (I hacked it directly into the sendmail.cf file and yes, I
remembered to restart sendmail.)
I've since done the following to try to change the envelope sender,
and it seems to be showing up, so we'll see over time if there's any
improvement.
define(`_REC_END_', `for $u; $|;
$.$b
(envelope-from: postmaster@$j)')
cd /usr/ports/mail/sendmail
make config
de-select IPV6make
make install
mailer.conf
(see below) to point
to /usr/local/sbin/sendmail
.sendmail -d0.10 | grep INET6
and hit Ctrl-D to get out.http://ftp.freebsd.org/pub/FreeBSD/releases/
and
download your appropriate src.txz
. Then do tar -C
/ src.txz
./etc/make.conf
(create if necessary -- note default
at /usr/share/examples/etc/make.conf
) and add:SENDMAIL_CFLAGS+= -I/usr/local/include -DSASL2
SENDMAIL_CFLAGS+= -UNETINET6
SENDMAIL_lDLAGS+= -L/usr/local/lib
SENDMAIL_lDLAGS+= -lsasl2
cd /usr/src/lib/libsmutil
make cleandir && make obj && make
cd /usr/src/lib/libsm
make cleandir && make obj && make
cd /usr/src/usr.sbin/sendmail
make cleandir && make obj && make && make install
/etc/mail
. The newly built one seems to be
at /usr/local/etc/mail/
, but I'm not sure that it's
used./usr/libexec/sendmail/sendmail
so update your
mailer.conf appropriately. Fuck - still seeing IPV6. Now tried the
other dir:cd /usr/local/etc/mail
mv mailer.conf mailer.conf.bak
ln -s /etc/mail/mailer.conf mailer.conf
cd /usr/ports/mail/sendmail
make config
make
Latest issue was the new install, Thunderbird was not able to send, error:
Relaying denied: IP name lookup failed [192.168.0.34]
Simply needed to add to /etc/mail/access
:
Connect:192.168.0 RELAY
-d8.20
parm to show detailed DNS info as send progresses.
I'm getting maillog errors:
sendmail: Losing ./qf#####: savemail panic
sendmail: SYSERR(root): savemail: cannot save rejected email anywhere
A super quick and easy way to test your postmaster alias:
date | sendmail -v -Am postmaster
This one turned out to be that I had define(`confLOCAL_MAILER',
`cyrusv2')
and MAILER(`cyrusv2')
in my mc file.
This was copied from another system that does work, I don't understand
why it's working on that system...
I took that out, no more savemail panic, still not getting mail via
imap though. Put it back, now suddenly everything is working. Don't
know which other change I made that fixed it, but I'm gonna quit now
while I'm ahead!
mail.local
in /usr/local/libexec
to /usr/libexec/
. I have a machine that I think works,
and it did have this link, whereas it was not present on the
non-working box.STARTTLS: x509 cert verify: depth=2 /C=US/ST=New Jersey/L=Jersey City/O=The USERTRUST Network/CN=USERTrust RSA Certification Authority, state=0, reason=unable to get certificate CRL
openssl x509 -in
[your .crt file] -text | more
openssl crl -inform DER -in 20200330-NetworkSolutionsOVServerCA2.crl -outform PEM -out zzz
in-addr.arpa
SMTP_MAX_RCPTS
setting to match
your.mc file MAX_RCPTS_PER_MESSAGE
. See mailman config page.
dnl Following fixes following error in /var/log/messages:
dnl [...] sm-mta[47220]: [...] SYSERR(root): timeout writing message to [...]
dnl See:
dnl https://forums.freebsd.org/threads/timeout-writing-message-to-local.55563/
dnl https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869666
FEATURE(`nocanonify')
dnl define(`confDIRECT_SUBMISSION_MODIFIERS', `C')
dnl Following limits size of file that will be sent to spamd, without this
dnl spamass will simply skip parsing of large emails and let them through.
define(`SMTP_MAILER_MAX', `15000000')
define(`confMAX_MESSAGE_SIZE', `15000000')
dnl Following changes from default: upped S and R from 4m to 6m, added T val to F switch
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=T, T=C:15m;S:6m;R:6m;E:10m')
define(`confMILTER_MACROS_CONNECT', `b, j, _, {daemon_name}, {if_name}, {if_addr}'})
define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO``, {verify}'')
dnl 20140302 - getting msg Could not retrieve sendmail macro "b"!
dnl in logfile. see:
dnl http://lists.gnu.org/archive/html/spamass-milt-list/2006-05/msg00011.html
define(`confMILTER_MACROS_ENVRCPT', ``b, r, v, Z'')
define(`confINPUT_MAIL_FILTERS', `spamassassin')
dnl put in MAX_RCPTS_PER_MESSAGE after another customer send to hundreds
dnl of senders and it's not looping resending... 16-Aug-2010
define(`confMAX_RCPTS_PER_MESSAGE', `25')
vacation (autoreply)
.forward
file, and a
.vacation.msg
file. Do web searches and man
vacation
for details on these..forward
, e.g. "\foo, "|/usr/bin/vacation
foo"
does work, however, "\foo, " | /usr/bin/vacation
foo"
does not work -- you'll get a "550 5.1.1 User
unknown".vacation -i
did anything --
no ouput, no log event, no new directory, nothing.man .forward
too."|/usr/bin/vacation -U -f
/home/foo/.vacation.db -m /home/foo/.vacation.msg -j foo"
.
It's not working, no autoreply, but now the email is no longer being
delivered locally... Note that the standard example is \john,
"| ...etc"
. After reading the manpage for .forward, I'm
pretty sure I don't want the preceding "\john, ". I give up./usr/ports/mail
you'll find some sort of sendmail-sasl dir. Do the appropriate make incantations. Now, most important, you need to change the system default builtin sendmail over to the new one. FreeBSD has installed mailwrapper
to do this for you. (Search for mailwrapper at http://www.freebsd.org/) Once this is done, you do not need to mess with /usr/local/etc/rc.d/sendmail.sh or with /etc/rc.conf..mc
file the hostname-of-this-server.mc
mail.domainname
as this would prevent you from bringing
up a new machine, configuring it, and changing over at your leisure by
merely changing MX records.confDOMAIN_NAME
directive (specifically $j)my secondary machine (vinifera.vintners.net) has:define(`confDOMAIN_NAME', `brix.vintners.net')
Bear in mind that this means mail will only be answered when explicitly sent to this machine (host.domain). On the assumption that you want mail sent simply to the domain to get through, this is an additional domaindefine(`confDOMAIN_NAME', `vinifera.vintners.net')
sendmail.cw
vintners.net mail.vintners.net
define(`confCW_FILE', `/etc/mail/local-host-names') FEATURE(`use_cw_file')
http://www.sendmail.org/~ca/email/english.html
(see "mail loops back to myself")popper
and/or imap
.
Primary machine
Secondary machine
"loops back to me"
error.
http://www.sendmail.org/faq/section4.html.
Months down the line you'll have a terrible time trying to figure
this one out.majordomo
or mailman
onto this
server so as to offload list processing to an external machine, this
configuration would not work as this machine would simply bounce the
mail back to the primary instead of handling it.mailertable
)..forward
file to point to main machine. Use explicit primary name.su
'ing) with a .forward
to the primary. As with root, use explicit name to primary.mailertable
)..forward
file to point to main machine. Use explicit primary name.su
'ing) with a .forward
to the primary. As with root, use explicit name to primary.local-host-names
file.