Switching final delivery from Postfix to Dovecot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Switching final delivery from Postfix to Dovecot

Danny Horne
Hi,

After using local filters (on Thunderbird) for a long time I'm trying to
get Dovecot / Sieve filtering working.  I think I'm almost there but
can't get Postfix to allow Dovecot to do the final delivery, which is (I
believe) the only thing stopping things working.

Here's my postconf -n output, I suspect it's the virtual stuff messing
things up.

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
compatibility_level = 2
content_filter = smtp-amavis:127.0.0.1:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = all
inet_protocols = all
local_recipient_maps =
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/dovecot-lda
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
meta_directory = /etc/postfix
milter_default_action = accept
mydestination =
mydomain = trisect.uk
myhostname = mail.trisect.uk
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = $smtpd_milters
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/README_FILES
receive_override_options = no_address_mappings
relayhost =
sample_directory = /usr/share/doc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
shlib_directory = /usr/lib64/postfix
smtp_dns_support_level = dnssec
smtp_tls_CApath = /etc/pki/tls/certs
smtp_tls_loglevel = 1
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = dane
smtp_use_tls = yes
smtpd_milters = unix:opendkim/opendkim.sock unix:opendmarc/opendmarc.sock
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination,
check_policy_service unix:postgrey/socket, check_policy_service
unix:private/policy-spf
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = dovecot
smtpd_tls_CApath = /etc/pki/tls/certs
smtpd_tls_ask_ccert = yes
smtpd_tls_auth_only = no
smtpd_tls_ccert_verifydepth = 2
smtpd_tls_cert_file = /etc/pki/tls/certs/mail.trisect.uk.crt
smtpd_tls_key_file = /etc/pki/tls/private/mail.trisect.uk.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_mailbox_ownership = no
tls_append_default_CA = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000

Thanks for looking


Reply | Threaded
Open this post in threaded view
|

Re: Switching final delivery from Postfix to Dovecot

Wietse Venema
Danny Horne:
> Hi,
>
> After using local filters (on Thunderbird) for a long time I'm trying to
> get Dovecot / Sieve filtering working.? I think I'm almost there but
> can't get Postfix to allow Dovecot to do the final delivery, which is (I
> believe) the only thing stopping things working.
>
> Here's my postconf -n output, I suspect it's the virtual stuff messing
> things up.

What is the error message? You can anonymize the domain name (use
example.com instead of the real domain).

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Switching final delivery from Postfix to Dovecot

Danny Horne
On 26/07/18 10:56, Wietse Venema wrote:

> Danny Horne:
>> Hi,
>>
>> After using local filters (on Thunderbird) for a long time I'm trying to
>> get Dovecot / Sieve filtering working.? I think I'm almost there but
>> can't get Postfix to allow Dovecot to do the final delivery, which is (I
>> believe) the only thing stopping things working.
>>
>> Here's my postconf -n output, I suspect it's the virtual stuff messing
>> things up.
> What is the error message? You can anonymize the domain name (use
> example.com instead of the real domain).
>
> Wietse
No error message as such, it just seems to me that Postfix is not
passing off the email to Dovecot for sieve filtering and final delivery

Jul 26 10:57:42 kepler postfix/qmgr[16939]: 4DCA9E5932:
from=<[hidden email]>, size=4652, nrcpt=1 (queue active)
Jul 26 10:57:42 kepler amavis[17176]: (17176-12) Passed CLEAN
{RelayedInbound}, [168.100.1.3]:38091 [168.100.189.2]
<[hidden email]> -> <[hidden email]>, Queue-ID:
37BE8E5930, Message-ID: <[hidden email]>, mail_id:
q-vmTc0Ah2uJ, Hits: -5.399, size: 4419, queued_as: 4DCA9E5932,
dkim_sd=dktest:porcupine.org, 996 ms
Jul 26 10:57:42 kepler postfix/smtp[19155]: 37BE8E5930:
to=<[hidden email]>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.3,
delays=1.3/0.02/0/1, dsn=2.0.0, status=sent (250 2.0.0 from
MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4DCA9E5932)
Jul 26 10:57:42 kepler postfix/qmgr[16939]: 37BE8E5930: removed
Jul 26 10:57:42 kepler postfix/virtual[19160]: 4DCA9E5932:
to=<[hidden email]>, relay=virtual, delay=0.02, delays=0.01/0.01/0/0,
dsn=2.0.0, status=sent (delivered to mailbox)
Jul 26 10:57:42 kepler postfix/qmgr[16939]: 4DCA9E5932: removed

Reply | Threaded
Open this post in threaded view
|

Re: Switching final delivery from Postfix to Dovecot

Danny Horne
In reply to this post by Wietse Venema
On 26/07/18 10:56, Wietse Venema wrote:

> Danny Horne:
>> Hi,
>>
>> After using local filters (on Thunderbird) for a long time I'm trying to
>> get Dovecot / Sieve filtering working.? I think I'm almost there but
>> can't get Postfix to allow Dovecot to do the final delivery, which is (I
>> believe) the only thing stopping things working.
>>
>> Here's my postconf -n output, I suspect it's the virtual stuff messing
>> things up.
> What is the error message? You can anonymize the domain name (use
> example.com instead of the real domain).
>
> Wietse
Ok, I've found a few gems on the internet that have shown me what I
needed to do to get Postfix to pass local delivery to Dovecot.  I still
have problems to fix but they're no longer Postfix ones