Strange log messages on a `closed" relay + few more...

Strange log messages on a `closed" relay + few more...

am 16.10.2007 19:02:25 von tehneut

Oct 16 22:40:17 mail sm-mta[34495]: l9GGeEvM034495: to= return-62-akstcmydomainmnsdgs=domain.com@apetitoenlinea.com> ,
delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=30000,
relay=mail.jocote.com. [64.8.120.7], dsn=2.0.0, stat=Sent (ok
1192552819 qp 16821)
....
Oct 16 22:40:43 mail sm-mta[34536]: l9GGedBi034536:
to=, delay=00:00:04, xdelay=00:00:04,
mailer=esmtp, pri=30000, relay=mx1.bne.server-mail.com.
[203.147.175.1], dsn=2.0.0, stat=Sent (14gg1Y00102JHHt0000000 mail
accepted for delivery)
....
Oct 16 22:41:28 mail sm-mta[34616]: l9GGfR8v034616:
to=, delay=00:00:01, xdelay=00:00:01,
mailer=esmtp, pri=30000, relay=komet.ru. [80.253.0.2], dsn=2.0.0,
stat=Sent ( <200710161641.l9GGfR8v034616@mail.domain.com> Queued mail
for delivery)

It's sendmail + dbmail + sasl2 setup, open relay tests show that no
open relay is available.
However... some things seem to come through... - how ?

Also earlier this day I've got a spam mail sent to something like
xfvbjasdf@mydomain.com... needless to say that user/alias `xfvbj....'
doesn't exist on the server.


More questions:

1. I need to setup the server so that even users sending mail from
user@mydomain to user2@mydomain should be authenticated but the
following line doesn't work for me
define(`confAUTH_OPTIONS', `Ay')dnl
At present they can easily send emails from any IP without any
authentication if they are sending it `locally'
Authentication works in all other cases (user@mydomain --->
user@otherdomain...)

2. atm when I try sendmail -bt:
> mail# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter


> /parse root
Cracked address = $g
Parsing envelope recipient address
canonify input: root
Canonify2 input: root
.....
Parse1 input: root
Parse1 returns: $# dbmail-local $: root
parse returns: $# dbmail-local $: root
buildaddr: no host
mailer *error*, user

So my local aliases do not work. How can I fix that ?

Thanks in advance

My sendmail.mc:

###############
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.2 2006/08/23
03:31:00 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(local_lmtp)
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

FEATURE(dnsbl, `zen.spamhaus.org', `"550 Mail from " $&{client_addr} "
rejected, see http://www.spamhaus.org/query/bl?" $&{client_addr}')
FEATURE(dnsbl,`dnsbl.njabl.org',`Message from $&{client_addr} rejected
- see http://njabl.org/lookup?$&{client_addr}')
FEATURE(dnsbl, `dnsbl.sorbs.net', `"550 Mail from " $&{client_addr} "
rejected, see http://www.sorbs.net/"')
FEATURE(`dnsbl', `bl.spamcop.net', `"450 Mail from " $`'&{client_addr}
" refused - see http://spamcop.net/bl.shtml"')
FEATURE(`delay_checks')

define(`confPRIVACY_FLAGS',
`goaway,noetrn,nobodyreturn,noreceipts')dnl
define(`confTO_COMMAND', `1m')dnl
define(`confTO_IDENT', `0s')dnl
define(`confTO_RESOLVER_RETRANS', `7s')dnl
define(`confTO_RESOLVER_RETRY', `4')dnl
define(`confMAX_DAEMON_CHILDREN',`100')dnl
define(`confCONNECTION_RATE_THROTTLE',`8')dnl

TRUST_AUTH_MECH(`PLAIN')dnl
FEATURE(`stickyhost')dnl
define(`confAUTH_MECHANISMS', `PLAIN')dnl
define(`confAUTH_OPTIONS', `Ay')dnl

define(`confLOCAL_MAILER', `dbmail-local')
define(`MAIL_HUB',`dbmail-local:localhost')

define(`confCW_FILE', `-o /etc/mail/local-host-names')

DAEMON_OPTIONS(`Name=IPv4, Family=inet')

define(`confBAD_RCPT_THROTTLE',`1')dnl
define(`confMAX_RCPTS_PER_MESSAGE',`5')dnl

define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')

define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`,
{verify}')dnl
define(`confMILTER_MACROS_ENVFROM', confMILTER_MACROS_ENVFROM`,
{msg_size}')dnl
INPUT_MAIL_FILTER(`smf-zombie', `S=unix:/var/smfs/smf-zombie.sock, T=S:
30s;R:1m')dnl
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clam/
milter.socket,F=,T=S:4m;R:4m')dnl

FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
FEATURE(always_add_domain)
MASQUERADE_AS(`dot.com.domain')
MASQUERADE_DOMAIN(`microsoft.exchange.domain')

MAILER(dbmail)dnl
MAILER(dbmail-lmtp)dnl
MAILER(dbmail-local)dnl
MAILER(local)
MAILER(smtp)