I think:

1) smtpd accepts message 
   (accept from any recipient !<blacklist> for domain <vdoms> relay via
    "smtp://127.0.0.1:10024")
2) smtpd forwards to amavisd
3) avavisd returns the message scanned to smtpd
4) smtpd does not accept the message (invalid rcpt)
   (accept tagged Scanned from local for domain <vdoms> virtual <vusers>
    deliver to maildir "~/maildir")

I suspect your <vusers> does not contain the line
mlmmj-test:  "|/usr/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test/".

Marcus

siefke_lis...@web.de (Silvio Siefke), 2016.08.16 (Tue) 19:18 (CEST):
> Hello, 
> 
> i try to run mlmmj with opensmtpd. 
> 
> My config:
> 
> # generate db using makemap
> table aliases                  file:/etc/smtpd/tables/aliases
> table vdoms                    file:/etc/smtpd/tables/domains.conf
> table vusers                   file:/etc/smtpd/tables/users.conf
> table blacklist                file:/etc/smtpd/tables/blacklist.conf
> 
> # Filter
> filter dnsbl-sorbs    dnsbl       "-h dnsbl.sorbs.net"
> filter dnsbl-spamcop  dnsbl       "-h bl.spamcop.net"
> filter dnsbl-spamhaus dnsbl       "-h zen.spamhaus.org"
> filter dnsbl-all      chain       dnsbl-sorbs dnsbl-spamcop dnsbl-spamhaus
> 
> # See smtpd.conf(5) for more information.
> pki fr-sb.silviosiefke.com certificate "/etc/smtpd/tls/smtpd.crt"
> pki fr-sb.silviosiefke.com key         "/etc/smtpd/tls/smtpd.key"
> 
> # Inbound mail smtp, smtps, deliver
> listen on localhost
> listen on eth0 port 25 filter dnsbl-all tls pki fr-sb.silviosiefke.com
> listen on eth0 port 587 tls-require pki fr-sb.silviosiefke.com auth
> 
> # Receive scanned mails from amavisd-new
> listen on localhost port 10025 tag Scanned
>  
> # Deliver locally messages coming back in from scanner
> accept from local for local alias <aliases> deliver to maildir "~/maildir"
> accept tagged Scanned from local for domain <vdoms> virtual <vusers> deliver 
> to maildir "~/maildir"
> reject tagged Scanned
> 
> # Forward all mail received for local domains to amavis
> accept from any recipient !<blacklist> for domain <vdoms> relay via 
> "smtp://127.0.0.1:10024"
> 
> # Relay anything that came in from authenticated users
> accept from local for any relay
> 
> 
> I set the virtual domains for lists and in alias i wrote:
> 
> mlmmj-test:  "|/usr/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test/"
> 
> 
> But opensmtpd like not my mails. Where is my mistake? 
> 
> log
> Aug 16 19:11:32 vps296466.ovh.net smtpd[2372]: smtp-in: New session 
> 3ff7f8362c39862f from host mail-wm0-f47.google.com [74.125.82.47]
> Aug 16 19:11:32 vps296466.ovh.net smtpd[2372]: smtp-in: Started TLS on 
> session 3ff7f8362c39862f: version=TLSv1.2, 
> cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128
> Aug 16 19:11:33 vps296466.ovh.net smtpd[2372]: smtp-in: Accepted message 
> 48d916eb on session 3ff7f8362c39862f: from=<silviosie...@gmail.com>, 
> to=<mlmmj-test+subscr...@silviosiefke.com>, size=2772, ndest=1, proto=ESMTP
> Aug 16 19:11:33 vps296466.ovh.net smtpd[2372]: smtp-out: Connecting to 
> smtp://127.0.0.1:10024 (localhost) on session 3ff7f8406ef2764b...
> Aug 16 19:11:33 vps296466.ovh.net smtpd[2372]: smtp-out: Connected on session 
> 3ff7f8406ef2764b
> Aug 16 19:11:33 vps296466.ovh.net smtpd[2372]: smtp-in: Closing session 
> 3ff7f8362c39862f
> Aug 16 19:11:33 vps296466.ovh.net smtpd[2372]: smtp-in: New session 
> 3ff7f84124a80a05 from host localhost [127.0.0.1]
> Aug 16 19:11:33 vps296466.ovh.net smtpd[2372]: smtp-in: Failed command on 
> session 3ff7f84124a80a05: "RCPT TO:<mlmmj-test+subscr...@silviosiefke.com>" 
> => 550 Invalid recipient
> Aug 16 19:11:33 vps296466.ovh.net amavis[362]: (00362-09) no valid 
> recipients, skip data transfer
> Aug 16 19:11:33 vps296466.ovh.net amavis[362]: (00362-09) (!)pK4TzHnXfKAp FWD 
> from <silviosie...@gmail.com> -> <mlmmj-test+subscr...@silviosiefke.com>, 
> BODY=7BIT 550 5.1.0 from MTA(smtp:[127.0.0.1]:10025): 550 Invalid recipient
> Aug 16 19:11:33 vps296466.ovh.net amavis[362]: (00362-09) Blocked MTA-BLOCKED 
> {RejectedInbound}, [127.0.0.1] [2003:88:cf07:c114:1a3d:a2ff:fe5c:51d8] 
> <silviosie...@gmail.com> -> <mlmmj-test+subscr...@silviosiefke.com>, 
> Message-ID: <20160816191131.e1f6cba209066140c147c...@gmail.com>, mail_id: 
> pK4TzHnXfKAp, Hits: 1.867, size: 2821, dkim_sd=20120113:gmail.com, 459 ms
> Aug 16 19:11:33 vps296466.ovh.net smtpd[2372]: relay: PermFail for 
> 48d916eb83cdbbbc: session=3ff7f8406ef2764b, from=<silviosie...@gmail.com>, 
> to=<mlmmj-test+subscr...@silviosiefke.com>, rcpt=<->, source=127.0.0.1, 
> relay=127.0.0.1 (localhost), delay=1s, stat=550 5.1.0 id=00362-09 - Rejected 
> by next-hop MTA on relaying, from MTA(smtp:[127.0.0.1]:10025): 550 Invalid 
> recipient
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: smtp-in: New session 
> 3ff7f846f96b5f37 from host vps296466.ovh.net [local]
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: smtp-in: Accepted message 
> 895e6b66 on session 3ff7f846f96b5f37: from=<>, to=<silviosie...@gmail.com>, 
> size=4228, ndest=1, proto=ESMTP
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: smtp-in: Closing session 
> 3ff7f846f96b5f37
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: smtp-out: Connecting to 
> smtp+tls://74.125.195.27:25 (wj-in-f27.1e100.net) on session 
> 3ff7f85087d33fd7...
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: smtp-out: Connected on session 
> 3ff7f85087d33fd7
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: smtp-out: Started TLS on 
> session 3ff7f85087d33fd7: version=TLSv1.2, 
> cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: smtp-out: Server certificate 
> verification succeeded on session 3ff7f85087d33fd7
> Aug 16 19:11:34 vps296466.ovh.net smtpd[2372]: relay: Ok for 
> 895e6b669b3e29bf: session=3ff7f85087d33fd7, from=<>, 
> to=<silviosie...@gmail.com>, rcpt=<->, source=164.132.55.246, 
> relay=74.125.195.27 (wj-in-f27.1e100.net), delay=0s, stat=250 2.0.0 OK 
> 1471367495 x8si21738761wme.6 - gsmtp
> Aug 16 19:11:43 vps296466.ovh.net smtpd[2372]: smtp-out: Closing session 
> 3ff7f8406ef2764b: 0 message sent.
> Aug 16 19:11:43 vps296466.ovh.net smtpd[2372]: smtp-in: Closing session 
> 3ff7f84124a80a05
> Aug 16 19:11:44 vps296466.ovh.net smtpd[2372]: smtp-out: Closing session 
> 3ff7f85087d33fd7: 1 message sent.
> 
> 
> Thank you for help
> 
> Silvio



> !DSPAM:57b34df353366637824516!


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to