Hello,

I am using postfix 2.7.2, dovecot 2.0.8 and fetchmail 6.3.17 from
pkgsrc on netbsd 5.1 x86 on my home LAN. I am sorry if this turns out
to be a fetchmail or dovecot question.

I want to have messages filtered using sieve in dovecot, but postfix
appears to be storing messages directly into the maildir
directory.

The message retrieved by fetchmail will have a header like:

 To: ks...@kendallshaw.com

I also see that fetchmail sends to postfix:

  RCPT TO:<kshaw@localhost>

In the log, messages about delivery for that message look like:


... postfix/qmgr[9145]: 41B0F692043: from=<bl...@blarg.bl>,
    size=2763, nrcpt=1 (queue active)

... postfix/local[7649]: 41B0F692043:
    to=<kshaw@localhost.localdomain>, orig_to=<kshaw@localhost>,
    relay=local, delay=0.21, delays=0.21/0/0/0, dsn=2.0.0,
    status=sent (delivered to maildir)

when I am wanting it to be delivered over LMTP.

Is postfix using local delivery because RCPT TO was kshaw@localhost?
Or, if that is normal, what do I need to do aside from setting
virtual_transport as I have?

postconf -n:

broken_sasl_auth_clients = yes
command_directory = /usr/pkg/sbin
config_directory = /usr/pkg/etc/postfix
daemon_directory = /usr/pkg/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 9
debug_peer_list = 127.0.0.1 kendallshaw.com
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail/
mailq_path = /usr/pkg/bin/mailq
manpage_directory = /usr/pkg/man
myhostname = madeup
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = kendallshaw.com
newaliases_path = /usr/pkg/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/pkg/share/doc/postfix
relayhost = [smtp.example.com]:submission
sample_directory = /usr/pkg/share/examples/postfix
sendmail_path = /usr/pkg/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/usr/pkg/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/ssl/certs/example.pem
smtp_tls_loglevel = 1
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_restriction_classes = permissive
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks check_sender_access hash:/usr/pkg/etc/postfix/sender_access
smtpd_tls_CAfile = /etc/openssl/madeupCA/cacert.pem
smtpd_tls_cert_file = /etc/openssl/certs/madeup-cert.pem
smtpd_tls_key_file = /etc/openssl/private/madeup-key.pem
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_mailbox_domains = kendallshaw.com
virtual_transport = lmtp:unix:private/dovecot-lmtp

Socket:

srw-rw---- 1 postfix postfix 0 Jul 19 07:23 /var/spool/postfix/private/dovecot-lmtp

Dovecot:

service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0660
    user = postfix
  }
}

Kendall


Reply via email to