[postfix-users] einsortieren von mails mit dovecot
Mario Stich
mario.stich at draht-schutz.de
So Feb 14 15:10:37 CET 2010
Hallo Patrick,
Muss beides in die main.cf?
wenn ich beides in die main.cf. schreibe.
local_transport = dovecot
mailbox_command = /usr/lib/dovecot/deliver -d "$RECIPIENT"
bekome ich folgende Fehlermeldung:
Feb 14 15:05:30 dsmail postfix/smtpd[20067]: connect from
unknown[192.168.74.98]
Feb 14 15:05:30 dsmail postfix/smtpd[20067]: 7DA11548371:
client=unknown[192.168.74.98]
Feb 14 15:05:30 dsmail postfix/cleanup[20062]: 7DA11548371:
message-id=<007a01caad7e$82a3fc30$624aa8c0 at admin>
Feb 14 15:05:30 dsmail postfix/qmgr[20046]: 7DA11548371:
from=<test at example.com>, size=1321, nrcpt=1 (queue active)
Feb 14 15:05:30 dsmail postfix/smtpd[20067]: disconnect from
unknown[192.168.74.98]
Feb 14 15:05:47 dsmail postfix/smtpd[20072]: connect from
localhost[127.0.0.1]
Feb 14 15:05:47 dsmail postfix/smtpd[20072]: 226AA548372:
client=localhost[127.0.0.1]
Feb 14 15:05:47 dsmail postfix/cleanup[20063]: 226AA548372:
message-id=<007a01caad7e$82a3fc30$624aa8c0 at admin>
Feb 14 15:05:47 dsmail postfix/smtpd[20072]: disconnect from
localhost[127.0.0.1]
Feb 14 15:05:47 dsmail postfix/qmgr[20046]: 226AA548372:
from=<test at example.com>, size=1789, nrcpt=1 (queue active)
Feb 14 15:05:47 dsmail postfix/pipe[20058]: 226AA548372:
to=<test at example.com>, relay=dovecot, delay=0.02, delays=0.01/0/0/0.01,
dsn=5.1.1, status=bounced (user unknown)
Feb 14 15:05:47 dsmail postfix/cleanup[20062]: 27A54548389:
message-id=<20100214140547.27A54548389 at dsmail.example.com>
Feb 14 15:05:47 dsmail amavis[16324]: (16324-07) Passed CLEAN, MYNETS LOCAL
[192.168.74.98] [192.168.74.98] <test at example.com> -> <test at example.com>,
Message-ID: <007a01caad7e$82a3fc30$624aa8c0 at admin>, mail_id: G+uJQPlWxmoe,
Hits: -0.998, size: 1321, queued_as: 226AA548372, 16575 ms
Feb 14 15:05:47 dsmail postfix/smtp[20069]: 7DA11548371:
to=<test at example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=17,
delays=0.06/0.02/0/17, dsn=2.0.0, status=sent (250 2.0.0 from
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 226AA548372)
Feb 14 15:05:47 dsmail postfix/qmgr[20046]: 7DA11548371: removed
Feb 14 15:05:47 dsmail postfix/qmgr[20046]: 27A54548389: from=<>, size=3659,
nrcpt=1 (queue active)
Feb 14 15:05:47 dsmail postfix/bounce[20061]: 226AA548372: sender
non-delivery notification: 27A54548389
Feb 14 15:05:47 dsmail postfix/qmgr[20046]: 226AA548372: removed
Feb 14 15:05:47 dsmail postfix/pipe[20055]: 27A54548389:
to=<test at example.com>, relay=dovecot, delay=0.03, delays=0.02/0/0/0.01,
dsn=5.1.1, status=bounced (user unknown)
Feb 14 15:05:47 dsmail postfix/qmgr[20046]: 27A54548389: removed
Sehe schon grüne und gelbe Punkte vor lauter code ^^
Mit freundlichen Grüßen
Mario
-----Ursprüngliche Nachricht-----
Von: postfix-users-bounces+mario.stich=draht-schutz.de at de.postfix.org
[mailto:postfix-users-bounces+mario.stich=draht-schutz.de at de.postfix.org] Im
Auftrag von Mario Stich
Gesendet: Sonntag, 14. Februar 2010 14:59
An: 'Mailing-Liste der deutschsprachigen Postfix Gemeinschaft'
Betreff: Re: [postfix-users] einsortieren von mails mit dovecot
Hallo Patrick,
leider unverändert. Bekomme weiterhin folgende Fehlermeldung im Log und mail
bleibt im Queue:
Feb 14 14:54:04 dsmail postfix/local[19906]: 2A776548371:
to=<test at example.com>, relay=local, delay=0.06, delays=0/0.01/0/0.05,
dsn=4.3.0, status=deferred (temporary failure)
Hier nochmal ein postconf -n Vielleicht hilft es weiter.
address_verify_map = btree:/var/spool/postfix/verified_senders
address_verify_negative_cache = no
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavisfeed:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
html_directory = /usr/share/doc/packages/postfix-doc/html
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = /usr/lib/dovecot/deliver -d ""$RECIPIENT"
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maximal_queue_lifetime = 4d
mydestination = $mydomain, $myhostname, localhost, localhost.$mydomain
mydomain = example.com
myhostname = dsmail.example.com
mynetworks = 192.168.74.0/24 192.168.45.0/24 192.168.78.0/24
192.168.75.0/24 192.168.10.0/24 192.168.0.0/24 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
relayhost = mail.draht-schutz.com
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtpd_data_restrictions = reject_multi_recipient_bounce
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_non_fqdn_recipient
reject_non_fqdn_sender reject_unknown_sender_domain
reject_unknown_recipient_domain permit_mynetworks
permit_sasl_authenticated reject_sender_login_mismatch
check_client_access hash:/etc/postfix/internal_networks
check_sender_access hash:/etc/postfix/not_our_domain_as_sender
reject_unauth_destination check_recipient_access
hash:/etc/postfix/roleaccount_exceptions reject_multi_recipient_bounce
reject_invalid_helo_hostname check_helo_access
pcre:/etc/postfix/helo_checks check_sender_mx_access
cidr:/etc/postfix/bogus_mx reject_rbl_client zen.spamhaus.org
reject_rbl_client dnsbl.sorbs.net reject_unverified_sender
check_sender_access regexp:/etc/postfix/common_spam_senderdomain_keywords
permit
smtpd_restriction_classes = has_our_domain_as_sender
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
transport_retry_time = 600
unknown_local_recipient_reject_code = 550
virtual_transport = dovecot
Mit freundlichen Grüßen
Mario
-----Ursprüngliche Nachricht-----
Von: postfix-users-bounces+mario.stich=draht-schutz.de at de.postfix.org
[mailto:postfix-users-bounces+mario.stich=draht-schutz.de at de.postfix.org] Im
Auftrag von Patrick Ben Koetter
Gesendet: Sonntag, 14. Februar 2010 14:29
An: postfix-users at de.postfix.org
Betreff: Re: [postfix-users] einsortieren von mails mit dovecot
* Mario Stich <postfix-users at de.postfix.org>:
> Hi Patrick,
>
> wie sieht da der genaue Parameter aus?
>
> local_transport = dovecot ?
mailbox_command = /usr/lib/dovecot/deliver -d "$RECIPIENT"
>
>
> Wenn ich diesen Parameter in die main.cf schreibe, bleibt die mail im
queue
> und ich bekomme folgende Fehlermeldung in /var/log/mail:
>
> Feb 14 14:15:54 dsmail postfix/smtpd[19140]: connect from
> unknown[192.168.74.98]
> Feb 14 14:15:54 dsmail postfix/smtpd[19140]: F1201548371:
> client=unknown[192.168.74.98]
> Feb 14 14:15:55 dsmail postfix/cleanup[19143]: F1201548371:
> message-id=<003201caad77$95289a20$624aa8c0 at admin>
> Feb 14 14:15:55 dsmail postfix/qmgr[19135]: F1201548371:
> from=<test at example.com>, size=1355, nrcpt=1 (queue active)
> Feb 14 14:15:55 dsmail postfix/smtpd[19140]: disconnect from
> unknown[192.168.74.98]
> Feb 14 14:16:08 dsmail postfix/smtpd[19147]: connect from
> localhost[127.0.0.1]
> Feb 14 14:16:08 dsmail postfix/smtpd[19147]: 3C503548372:
> client=localhost[127.0.0.1]
> Feb 14 14:16:08 dsmail postfix/cleanup[19143]: 3C503548372:
> message-id=<003201caad77$95289a20$624aa8c0 at admin>
> Feb 14 14:16:08 dsmail postfix/smtpd[19147]: disconnect from
> localhost[127.0.0.1]
> Feb 14 14:16:08 dsmail postfix/qmgr[19135]: 3C503548372:
> from=<test at example.com>, size=1821, nrcpt=1 (queue active)
> Feb 14 14:16:08 dsmail amavis[16324]: (16324-03) Passed CLEAN, MYNETS
LOCAL
> [192.168.74.98] [192.168.74.98] <test at example.com> -> <test at example.com>,
> Message-ID: <003201caad77$95289a20$624aa8c0 at admin>, mail_id: ImenJTgkU67T,
> Hits: -0.998, size: 1355, queued_as: 3C503548372, 13210 ms
>
> Feb 14 14:16:08 dsmail postfix/smtp[19144]: F1201548371:
> to=<test at example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=13,
> delays=0.06/0.02/0.01/13, dsn=2.0.0, status=sent (250 2.0.0 from
> MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3C503548372)
>
> Feb 14 14:16:08 dsmail postfix/qmgr[19135]: F1201548371: removed
> Feb 14 14:16:08 dsmail postfix/pipe[19149]: 3C503548372:
> to=<test at example.com>, relay=dovecot, delay=0.15, delays=0/0.05/0/0.1,
> dsn=4.3.0,
>
> status=deferred (temporary failure. Command output: Can't open log file
> /var/log/dovecot.log: Permission denied )
>
>
>
> Mit freundlichen Grüßen
> Mario
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: postfix-users-bounces+mario.stich=draht-schutz.de at de.postfix.org
> [mailto:postfix-users-bounces+mario.stich=draht-schutz.de at de.postfix.org]
Im
> Auftrag von Patrick Ben Koetter
> Gesendet: Sonntag, 14. Februar 2010 14:07
> An: postfix-users at de.postfix.org
> Betreff: Re: [postfix-users] einsortieren von mails mit dovecot
>
> * Mario Stich <postfix-users at de.postfix.org>:
> > Hallo,
> >
> > habe folgendes Problem das mails nach /var/mail/user einsortiert werden,
> > aber dovecot bei Anfragen im Verzeichniss /home/user/maildir schaut.
>
> Was ist mit dem local_transport? Hast Du den auch auf deliver eingestellt?
>
> p at rick
>
>
> > Logischerweise kann ich dadurch keine mails abrufen.
> >
> > Wo liegt mein Fehler?
> >
> > Als deliver soll dovecot verwendet werden, aber laut log scheint das
immer
> > noch der local zu machen, wo liegt da der Fehler?
> >
> > Als user werden lokale user verwendet (passwd und shadow)
> >
> >
> >
> > Stehe grad irgendwie aufm Schlauch und hoffe Ihr könnt mir helfen.
> >
> > Vielen Dank schon einmal im Vorraus.
> >
> >
> >
> >
> > Anbei die Configs und logs:
> >
> > ######################################
> >
> > dovecot.conf:
> > base_dir = /var/run/dovecot
> >
> > protocols = imap pop3
> >
> > log_path = /var/log/dovecot.log
> >
> > auth_debug = yes
> >
> > auth_debug_passwords = yes
> >
> > disable_plaintext_auth = no
> >
> > ssl_disable = yes
> >
> > login_dir = /var/run/dovecot/login
> >
> > mail_location = maildir:~/Maildir
> >
> > pop3_uidl_format = %08Xu%08Xv
> >
> > protocol lda {
> >
> > postmaster_address = postmaster at example.com
> >
> > }
> >
> > auth default {
> >
> > mechanisms = plain login
> >
> > passdb shadow {
> >
> > }
> >
> > userdb passwd {
> >
> > }
> >
> > user = root
> >
> > socket listen {
> >
> > client {
> >
> > # Assuming the default Postfix $queue_directory setting
> >
> > path = /var/spool/postfix/private/auth
> >
> > mode = 0660
> >
> > # Assuming the default Postfix user and group
> >
> > user = postfix
> >
> > group = postfix
> >
> > }
> >
> > # deliver and some other programs need also auth-master:
> >
> > master {
> >
> > path = /var/run/dovecot/auth-master
> >
> > mode = 0600
> >
> > user = virtual
> >
> > group = virtual
> >
> > }
> >
> > }
> >
> > }
> > ######################################
> >
> > Eintrag in der Master.cf:
> > #dovecot deliver
> > dovecot unix - n n - - pipe
> > flags=DRhu user=virtual:virtual argv=/usr/lib/dovecot/deliver
> > -e -f ${sender} -d ${recipient}
> >
> > ######################################
> >
> > Eintrag in der Main.cf
> > virtual_transport = dovecot
> > dovecot_destination_recipient_limit = 1
> > ######################################
> >
> > /var/log/mail
> >
> > Feb 14 13:53:08 dsmail postfix/smtpd[18859]: connect from
> > unknown[192.168.74.98]
> > Feb 14 13:53:08 dsmail postfix/smtpd[18859]: 081CD548371:
> > client=unknown[192.168.74.98]
> > Feb 14 13:53:08 dsmail postfix/cleanup[18862]: 081CD548371:
> > message-id=<002b01caad74$666b7390$624aa8c0 at admin>
> > Feb 14 13:53:08 dsmail postfix/qmgr[18791]: 081CD548371:
> > from=<test at example.com>, size=1320, nrcpt=1 (queue active)
> > Feb 14 13:53:08 dsmail postfix/smtpd[18859]: disconnect from
> > unknown[192.168.74.98]
> > Feb 14 13:53:28 dsmail postfix/smtpd[18866]: connect from
> > localhost[127.0.0.1]
> > Feb 14 13:53:28 dsmail postfix/smtpd[18866]: 0EADD548372:
> > client=localhost[127.0.0.1]
> > Feb 14 13:53:28 dsmail postfix/cleanup[18862]: 0EADD548372:
> > message-id=<002b01caad74$666b7390$624aa8c0 at admin>
> > Feb 14 13:53:28 dsmail postfix/qmgr[18791]: 0EADD548372:
> > from=<test at example.com>, size=1786, nrcpt=1 (queue active)
> > Feb 14 13:53:28 dsmail postfix/local[18868]: 0EADD548372:
> > to=<test at example.com>, relay=local, delay=0.02, delays=0.01/0.01/0/0.01,
> > dsn=2.0.0, status=sent (delivered to mailbox)
> > Feb 14 13:53:28 dsmail postfix/qmgr[18791]: 0EADD548372: removed
> >
> > Feb 14 13:53:28 dsmail amavis[16328]: (16328-01) Passed CLEAN, MYNETS
> LOCAL
> > [192.168.74.98] [192.168.74.98] <test at example.com> ->
<test at example.com>,
> > Message-ID: <002b01caad74$666b7390$624aa8c0 at admin>, mail_id:
WKjJivCEHcev,
> > Hits: -0.998, size: 1320, queued_as: 0EADD548372, 19983 ms
> >
> > Feb 14 13:53:28 dsmail postfix/smtp[18863]: 081CD548371:
> > to=<test at example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=20,
> > delays=0.06/0.02/0.02/20, dsn=2.0.0, status=sent (250 2.0.0 from
> > MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0EADD548372)
> >
> > Feb 14 13:53:28 dsmail postfix/qmgr[18791]: 081CD548371: removed
> > ######################################
> >
> >
> >
> > Mit freundlichen Grüßen
> >
> > Mario
> >
> >
> >
>
> > _______________________________________________
> > postfix-users mailing list
> > postfix-users at de.postfix.org
> > http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
>
>
> --
> state of mind
> Digitale Kommunikation
>
> http://www.state-of-mind.de
>
> Franziskanerstraße 15 Telefon +49 89 3090 4664
> 81669 München Telefax +49 89 3090 4666
>
> Amtsgericht München Partnerschaftsregister PR 563
>
> _______________________________________________
> postfix-users mailing list
> postfix-users at de.postfix.org
> http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
>
> _______________________________________________
> postfix-users mailing list
> postfix-users at de.postfix.org
> http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
--
state of mind
Digitale Kommunikation
http://www.state-of-mind.de
Franziskanerstraße 15 Telefon +49 89 3090 4664
81669 München Telefax +49 89 3090 4666
Amtsgericht München Partnerschaftsregister PR 563
_______________________________________________
postfix-users mailing list
postfix-users at de.postfix.org
http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
_______________________________________________
postfix-users mailing list
postfix-users at de.postfix.org
http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
Mehr Informationen über die Mailingliste postfix-users