On 02/24/16 19:16, Alexander Dalloz via Info-cyrus wrote:
Am 24.02.2016 um 18:15 schrieb Andrea Venturoli via Info-cyrus:
On 02/24/16 15:24, Sebastian Hagedorn wrote:
Use virtusertable instead of aliases, e.g.
postmas...@oneofmydomains.com root
Don't use unqualified LHS addresses.
LHS=Left Hand Side? Then I didn't.
Changing root to "someth...@somedomain.com" doesn't work either.
And make sure to direct a catch-all to the error mailer in virtusertable.
Why?
Can you provide an example?
You complete sendmail.mc and log content would be useful.
Here's the MC (stripped of config and blank lines):
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.3.4.1 2009/04/15
03:14:26 kensmith Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
define(`CYRUSV2_MAILER_FLAGS',`A5@')
define(`confLOCAL_MAILER', `cyrusv2')
_DEFIFNOT(`_DEF_CYRUSV2_MAILER_FLAGS', `lsDFMnqXz')
_DEFIFNOT(`CYRUSV2_MAILER_FLAGS', `A@/:|m')
ifdef(`CYRUSV2_MAILER_ARGS',, `define(`CYRUSV2_MAILER_ARGS', `FILE
/var/imap/socket/lmtp')')
define(`_CYRUSV2_QGRP', `ifelse(defn(`CYRUSV2_MAILER_QGRP'),`',`', `
Q=CYRUSV2_MAILER_QGRP,')')dnl
POPDIVERT
VERSIONID(`$Id: cyrusv2.m4,v 1.2 2013-11-22 20:51:14 ca Exp $')
Mcyrusv2, P=[IPC], F=_MODMF_(CONCAT(_DEF_CYRUSV2_MAILER_FLAGS,
CYRUSV2_MAILER_FLAGS), `CYRUSV2'),
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
_OPTINS(`CYRUSV2_MAILER_MAXMSGS', `m=', `,
')_OPTINS(`CYRUSV2_MAILER_MAXRCPTS', `r=', `,
')_OPTINS(`CYRUSV2_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,_CYRUSV2_QGRP
A=CYRUSV2_MAILER_ARGS
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)
define(`CERT_DIR', `/usr/local/netfence/etc/openssl')
define(`CACERT_DIR', `CERT_DIR')
define(`confCACERT_PATH', `CACERT_DIR')
define(`confCACERT', `CACERT_DIR/trustico.pem')
define(`confSERVER_CERT', `CERT_DIR/smtp.mydomain.it.pem')
define(`confSERVER_KEY', `CERT_DIR/smtp.mydomain.it_key.pem')
define(`confDOUBLE_BOUNCE_ADDRESS',`')
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
define(`confAUTH_OPTIONS',`y')
CLIENT_OPTIONS(`Family=inet,M=S')
DAEMON_OPTIONS(`Port=smtp, Name=MTA')
DAEMON_OPTIONS(`Port=smtps, Name=SSA, M=Eas')
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=,
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')
LOCAL_CONFIG
O
CipherList=ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
O DHParameters=/etc/mail/dhparams.pem
And the extract of the log:
Feb 25 10:47:21 wilbur sm-mta[62536]: u1P9lKPJ062536: from=<m...@netfence.it>,
size=816, class=0, nrcpts=1, msgid=<56cecd91.3010...@netfence.it>, proto=ESMTP,
daemon=MTA, relay=smtp206.
alice.it [82.57.200.102]
Feb 25 10:48:03 wilbur sm-mta[62573]: u1P9lKPJ062536:
to=<postmas...@oneofmydomains.com>, delay=00:00:42, xdelay=00:00:00,
mailer=cyrusv2, pri=30816, relay=localhost, dsn=5.1.1, stat=User unknown
bye & Thanks
av.
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus