iOS Mail Client Not Copying to Sent Folder

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

iOS Mail Client Not Copying to Sent Folder

asai
Greetings,

We have many iOS clients, andomain.net some report that they’re having problems with iOS mail copying messages to their Sent folder.  This happens 2 - 3 times per day, and the phone just says Sending and the client never knows if it sends.  Client says apparently email DOES go out, but there is no recording of it.  This is usually on our LAN.

We’re not sure if this is solved via Postfix or Dovecot, or maybe something else, so I’m posting this message on both forums as a start.  Can anyone point us in the right direction here?

Running Postfix 2.11.1 and Dovecot ee 2.2.18.2

see postconf -n below:

alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavisfeed:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
dovecot_destination_recipient_limit = 1
header_checks = pcre:/etc/postfix/header_checks
html_directory = no
inet_protocols = ipv4
mysql:/etc/postfix/mysql_local_domains.cf, reject_unauth_destination
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
maximal_backoff_time = 600s
maximal_queue_lifetime = 1d
message_size_limit = 0
milter_default_action = accept
milter_macro_daemon_name = ORIGINATING
milter_protocol = 2
minimal_backoff_time = 300s
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = domain.net
myhostname = triata.domain.net
mynetworks = 127.0.0.1
newaliases_path = /usr/bin/newaliases
non_smtpd_milters = $smtpd_milters
postscreen_access_list = permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr
postscreen_dnsbl_action = enforce
postscreen_dnsbl_sites = dnsbl.sorbs.net=127.0.0.10*7 dnsbl.sorbs.net=127.0.0.6*8 bl.spamcop.net=127.0.0.2*8 bl.mailspike.net=127.0.0.2*8 zen.spamhaus.org=127.0.0.[2..7]*8 b.barracudacentral.org=127.0.0.2*8 dnsbl.inps.de=127.0.0.2*8 psbl.surriel.com=127.0.0.2*8 dnsbl.sorbs.net=127.0.0.5*7 bl.mailspike.net=127.0.0.[10;11;12]*5 bl.spameatingmonkey.net=127.0.0.[2;3]*4 dnsrbl.swinog.ch=127.0.0.3*4 dnsbl.sorbs.net=127.0.0.7*3 dnsbl.sorbs.net=127.0.0.8*2 dnsbl.sorbs.net=127.0.0.9*2 wl.mailspike.net=127.0.0.[18;19;20]*-4 list.dnswl.org=127.0.[0..255].0*-1 list.dnswl.org=127.0.[0..255].1*-2 list.dnswl.org=127.0.[0..255].2*-3 list.dnswl.org=127.0.[0..255].3*-4
postscreen_dnsbl_threshold = 8
postscreen_dnsbl_ttl = 5m
postscreen_greet_action = enforce
postscreen_greet_wait = ${stress?3}${stress:10}s
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = no
relay_domains = $mydestination, mysql:/etc/postfix/mysql_virtual_relay_domains.cf
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
show_user_unknown_table_name = no
smtp_sasl_mechanism_filter = plain, login
smtp_tls_security_level = may
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql_blacklist, permit_sasl_authenticated, permit_dnswl_client list.dnswl.org permit_dnswl_client wl.mailspike.net permit_dnswl_client iadb.isipp.com permit_dnswl_client sa-accredit.habeas.com permit_dnswl_client dnswl.inps.de permit_dnswl_client swl.spamhaus.org permit_dnswl_client hostkarma.junkemailfilter.com=127.0.0.1 ${stress?sleep 0}${stress: sleep 5} permit
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, check_helo_access mysql:/etc/postfix/mysql_helo_restrictions.cf, permit_sasl_authenticated, reject_invalid_hostname, permit
smtpd_milters = inet:127.0.0.1:8891
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unauth_destination, reject_invalid_hostname, reject_unknown_reverse_client_hostname, reject_non_fqdn_recipient, reject_unknown_sender_domain, check_recipient_access mysql:/etc/postfix/mysql_restricted_recipients.cf, permit
smtpd_relay_restrictions = permit_mynetworks, check_recipient_access mysql:/etc/postfix/mysql_restricted_recipients.cf, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/spam_senders_email, check_sender_access mysql:/etc/postfix/mysql_restricted_senders.cf, check_sender_access mysql:/etc/postfix/mysql_blacklist, permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/triata.pem
smtpd_tls_key_file = /etc/postfix/ssl/triata.key
smtpd_tls_received_header = no
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_session_cache
transport_maps = mysql:/etc/postfix/mysql_virtual_transport.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 0
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
virtual_transport = dovecot
virtual_uid_maps = static:1001


Reply | Threaded
Open this post in threaded view
|

Re: iOS Mail Client Not Copying to Sent Folder

Wietse Venema
Asai:
> Greetings,
>
> We have many iOS clients, andomain.net some report that they?re
> having problems with iOS mail copying messages to their Sent folder.
> This happens 2 - 3 times per day, and the phone just says Sending
> and the client never knows if it sends.  Client says apparently
> email DOES go out, but there is no recording of it.  This is usually
> on our LAN.

Postfix does not maintain 'sent' folders; perhaps Dovecot does.
The logs should show you a timeline of what happens when a client
tries to send email.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: iOS Mail Client Not Copying to Sent Folder

Robert Schetterer-2
In reply to this post by asai
Am 21.08.2018 um 00:25 schrieb Asai:

> Greetings,
>
> We have many iOS clients, andomain.net <http://andomain.net> some report
> that they’re having problems with iOS mail copying messages to their
> Sent folder.  This happens 2 - 3 times per day, and the phone just says
> Sending and the client never knows if it sends.  Client says apparently
> email DOES go out, but there is no recording of it.  This is usually on
> our LAN.
>
> We’re not sure if this is solved via Postfix or Dovecot, or maybe
> something else, so I’m posting this message on both forums as a start.
>  Can anyone point us in the right direction here?
>
> Running Postfix 2.11.1 and Dovecot ee 2.2.18.2

this is usual a imap copy to sent folder ( in your case solved with
dovecot )
your dovecot version is not up2date, perhaps update
make sure that imap con do not timeout during transmission etc

>
> see postconf -n below:
>
> alias_maps = hash:/etc/aliases
> broken_sasl_auth_clients = yes
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> content_filter = amavisfeed:[127.0.0.1]:10024
> daemon_directory = /usr/libexec/postfix
> data_directory = /var/lib/postfix
> debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
> $daemon_directory/$process_name $process_id & sleep 5
> dovecot_destination_recipient_limit = 1
> header_checks = pcre:/etc/postfix/header_checks
> html_directory = no
> inet_protocols = ipv4
> mysql:/etc/postfix/mysql_local_domains.cf, reject_unauth_destination
> mail_owner = postfix
> mailbox_size_limit = 0
> mailq_path = /usr/bin/mailq
> manpage_directory = /usr/local/man
> maximal_backoff_time = 600s
> maximal_queue_lifetime = 1d
> message_size_limit = 0
> milter_default_action = accept
> milter_macro_daemon_name = ORIGINATING
> milter_protocol = 2
> minimal_backoff_time = 300s
> mydestination = $myhostname, localhost.$mydomain, localhost
> mydomain = domain.net <http://domain.net>
> myhostname = triata.domain.net <http://triata.domain.net>
> mynetworks = 127.0.0.1
> newaliases_path = /usr/bin/newaliases
> non_smtpd_milters = $smtpd_milters
> postscreen_access_list = permit_mynetworks,
> cidr:/etc/postfix/postscreen_access.cidr
> postscreen_dnsbl_action = enforce
> postscreen_dnsbl_sites = dnsbl.sorbs.net
> <http://dnsbl.sorbs.net>=127.0.0.10*7 dnsbl.sorbs.net
> <http://dnsbl.sorbs.net>=127.0.0.6*8 bl.spamcop.net
> <http://bl.spamcop.net>=127.0.0.2*8 bl.mailspike.net
> <http://bl.mailspike.net>=127.0.0.2*8 zen.spamhaus.org
> <http://zen.spamhaus.org>=127.0.0.[2..7]*8 b.barracudacentral.org
> <http://b.barracudacentral.org>=127.0.0.2*8 dnsbl.inps.de
> <http://dnsbl.inps.de>=127.0.0.2*8 psbl.surriel.com
> <http://psbl.surriel.com>=127.0.0.2*8 dnsbl.sorbs.net
> <http://dnsbl.sorbs.net>=127.0.0.5*7 bl.mailspike.net
> <http://bl.mailspike.net>=127.0.0.[10;11;12]*5 bl.spameatingmonkey.net
> <http://bl.spameatingmonkey.net>=127.0.0.[2;3]*4 dnsrbl.swinog.ch
> <http://dnsrbl.swinog.ch>=127.0.0.3*4 dnsbl.sorbs.net
> <http://dnsbl.sorbs.net>=127.0.0.7*3 dnsbl.sorbs.net
> <http://dnsbl.sorbs.net>=127.0.0.8*2 dnsbl.sorbs.net
> <http://dnsbl.sorbs.net>=127.0.0.9*2 wl.mailspike.net
> <http://wl.mailspike.net>=127.0.0.[18;19;20]*-4 list.dnswl.org
> <http://list.dnswl.org>=127.0.[0..255].0*-1 list.dnswl.org
> <http://list.dnswl.org>=127.0.[0..255].1*-2 list.dnswl.org
> <http://list.dnswl.org>=127.0.[0..255].2*-3 list.dnswl.org
> <http://list.dnswl.org>=127.0.[0..255].3*-4
> postscreen_dnsbl_threshold = 8
> postscreen_dnsbl_ttl = 5m
> postscreen_greet_action = enforce
> postscreen_greet_wait = ${stress?3}${stress:10}s
> queue_directory = /var/spool/postfix
> queue_run_delay = 300s
> readme_directory = no
> relay_domains = $mydestination,
> mysql:/etc/postfix/mysql_virtual_relay_domains.cf
> sample_directory = /etc/postfix
> sendmail_path = /usr/sbin/sendmail
> setgid_group = postdrop
> show_user_unknown_table_name = no
> smtp_sasl_mechanism_filter = plain, login
> smtp_tls_security_level = may
> smtpd_client_restrictions = check_client_access
> mysql:/etc/postfix/mysql_blacklist, permit_sasl_authenticated,
> permit_dnswl_client list.dnswl.org <http://list.dnswl.org>
> permit_dnswl_client wl.mailspike.net <http://wl.mailspike.net>
> permit_dnswl_client iadb.isipp.com <http://iadb.isipp.com>
> permit_dnswl_client sa-accredit.habeas.com
> <http://sa-accredit.habeas.com> permit_dnswl_client dnswl.inps.de
> <http://dnswl.inps.de> permit_dnswl_client swl.spamhaus.org
> <http://swl.spamhaus.org> permit_dnswl_client
> hostkarma.junkemailfilter.com
> <http://hostkarma.junkemailfilter.com>=127.0.0.1 ${stress?sleep
> 0}${stress: sleep 5} permit
> smtpd_data_restrictions = reject_unauth_pipelining, permit
> smtpd_delay_reject = yes
> smtpd_helo_required = yes
> smtpd_helo_restrictions = permit_mynetworks, check_helo_access
> mysql:/etc/postfix/mysql_helo_restrictions.cf,
> permit_sasl_authenticated, reject_invalid_hostname, permit
> smtpd_milters = inet:127.0.0.1:8891
> smtpd_recipient_restrictions = permit_mynetworks,
> permit_sasl_authenticated, reject_non_fqdn_sender,
> reject_unauth_destination, reject_invalid_hostname,
> reject_unknown_reverse_client_hostname, reject_non_fqdn_recipient,
> reject_unknown_sender_domain, check_recipient_access
> mysql:/etc/postfix/mysql_restricted_recipients.cf, permit
> smtpd_relay_restrictions = permit_mynetworks, check_recipient_access
> mysql:/etc/postfix/mysql_restricted_recipients.cf,
> permit_sasl_authenticated, reject_unauth_destination
> smtpd_sasl_auth_enable = no
> smtpd_sasl_exceptions_networks = $mynetworks
> smtpd_sasl_path = private/auth
> smtpd_sasl_security_options = noanonymous
> smtpd_sasl_type = dovecot
> smtpd_sender_restrictions = check_sender_access
> regexp:/etc/postfix/spam_senders_email, check_sender_access
> mysql:/etc/postfix/mysql_restricted_senders.cf, check_sender_access
> mysql:/etc/postfix/mysql_blacklist, permit_sasl_authenticated,
> permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain,
> permit
> smtpd_tls_auth_only = yes
> smtpd_tls_cert_file = /etc/postfix/ssl/triata.pem
> smtpd_tls_key_file = /etc/postfix/ssl/triata.key
> smtpd_tls_received_header = no
> smtpd_tls_security_level = may
> smtpd_tls_session_cache_database =
> btree:/var/spool/postfix/smtpd_tls_session_cache
> transport_maps = mysql:/etc/postfix/mysql_virtual_transport.cf
> unknown_local_recipient_reject_code = 550
> virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
> virtual_gid_maps = static:1001
> virtual_mailbox_base = /vmail
> virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
> virtual_mailbox_limit = 0
> virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
> virtual_minimum_uid = 1001
> virtual_transport = dovecot
> virtual_uid_maps = static:1001
>
>
>



Best Regards
MfG Robert Schetterer

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG, 80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
Reply | Threaded
Open this post in threaded view
|

Re: iOS Mail Client Not Copying to Sent Folder

Håkon Alstadheim


Den 21. aug. 2018 08:44, skrev Robert Schetterer:

> Am 21.08.2018 um 00:25 schrieb Asai:
>> Greetings,
>>
>> We have many iOS clients, andomain.net <http://andomain.net> some report
>> that they’re having problems with iOS mail copying messages to their
>> Sent folder.  This happens 2 - 3 times per day, and the phone just says
>> Sending and the client never knows if it sends.  Client says apparently
>> email DOES go out, but there is no recording of it.  This is usually on
>> our LAN.
>>
>> We’re not sure if this is solved via Postfix or Dovecot, or maybe
>> something else, so I’m posting this message on both forums as a start.
>>  Can anyone point us in the right direction here?
>>
>> Running Postfix 2.11.1 and Dovecot ee 2.2.18.2
> this is usual a imap copy to sent folder ( in your case solved with
> dovecot )
> your dovecot version is not up2date, perhaps update
> make sure that imap con do not timeout during transmission etc
>

There is a setting in iOS mail-client which lets you turn of copying of
sent mail to the Sent folder. Check that on the failing clients. There
is nothing in the mail-protocols per se that forces saving of sent mail,
so either the client has to initiate a save via dovecot, or the MTA
(postfix) has to be set up to do a copy of all submitted mail. The
latter is possible, but a little finicky.

Reply | Threaded
Open this post in threaded view
|

Re: iOS Mail Client Not Copying to Sent Folder

luistkd4
In reply to this post by asai

The client maybe doesn't follow rfc6154, the folder name in ios is "sent" to?
You can specify the name used in ios in your special folder on dovecot.
https://wiki.dovecot.org/MailboxSettings



De: [hidden email] <[hidden email]> em nome de Asai <[hidden email]>
Enviado: segunda-feira, 20 de agosto de 2018 19:25:46
Para: Postfix users
Assunto: iOS Mail Client Not Copying to Sent Folder
 
Greetings,

We have many iOS clients, andomain.net some report that they’re having problems with iOS mail copying messages to their Sent folder.  This happens 2 - 3 times per day, and the phone just says Sending and the client never knows if it sends.  Client says apparently email DOES go out, but there is no recording of it.  This is usually on our LAN.

We’re not sure if this is solved via Postfix or Dovecot, or maybe something else, so I’m posting this message on both forums as a start.  Can anyone point us in the right direction here?

Running Postfix 2.11.1 and Dovecot ee 2.2.18.2

see postconf -n below:

alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavisfeed:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
dovecot_destination_recipient_limit = 1
header_checks = pcre:/etc/postfix/header_checks
html_directory = no
inet_protocols = ipv4
mysql:/etc/postfix/mysql_local_domains.cf, reject_unauth_destination
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
maximal_backoff_time = 600s
maximal_queue_lifetime = 1d
message_size_limit = 0
milter_default_action = accept
milter_macro_daemon_name = ORIGINATING
milter_protocol = 2
minimal_backoff_time = 300s
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = domain.net
myhostname = triata.domain.net
mynetworks = 127.0.0.1
newaliases_path = /usr/bin/newaliases
non_smtpd_milters = $smtpd_milters
postscreen_access_list = permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr
postscreen_dnsbl_action = enforce
postscreen_dnsbl_sites = dnsbl.sorbs.net=127.0.0.10*7 dnsbl.sorbs.net=127.0.0.6*8 bl.spamcop.net=127.0.0.2*8 bl.mailspike.net=127.0.0.2*8 zen.spamhaus.org=127.0.0.[2..7]*8 b.barracudacentral.org=127.0.0.2*8 dnsbl.inps.de=127.0.0.2*8 psbl.surriel.com=127.0.0.2*8 dnsbl.sorbs.net=127.0.0.5*7 bl.mailspike.net=127.0.0.[10;11;12]*5 bl.spameatingmonkey.net=127.0.0.[2;3]*4 dnsrbl.swinog.ch=127.0.0.3*4 dnsbl.sorbs.net=127.0.0.7*3 dnsbl.sorbs.net=127.0.0.8*2 dnsbl.sorbs.net=127.0.0.9*2 wl.mailspike.net=127.0.0.[18;19;20]*-4 list.dnswl.org=127.0.[0..255].0*-1 list.dnswl.org=127.0.[0..255].1*-2 list.dnswl.org=127.0.[0..255].2*-3 list.dnswl.org=127.0.[0..255].3*-4
postscreen_dnsbl_threshold = 8
postscreen_dnsbl_ttl = 5m
postscreen_greet_action = enforce
postscreen_greet_wait = ${stress?3}${stress:10}s
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = no
relay_domains = $mydestination, mysql:/etc/postfix/mysql_virtual_relay_domains.cf
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
show_user_unknown_table_name = no
smtp_sasl_mechanism_filter = plain, login
smtp_tls_security_level = may
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql_blacklist, permit_sasl_authenticated, permit_dnswl_client list.dnswl.org permit_dnswl_client wl.mailspike.net permit_dnswl_client iadb.isipp.com permit_dnswl_client sa-accredit.habeas.com permit_dnswl_client dnswl.inps.de permit_dnswl_client swl.spamhaus.org permit_dnswl_client hostkarma.junkemailfilter.com=127.0.0.1 ${stress?sleep 0}${stress: sleep 5} permit
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, check_helo_access mysql:/etc/postfix/mysql_helo_restrictions.cf, permit_sasl_authenticated, reject_invalid_hostname, permit
smtpd_milters = inet:127.0.0.1:8891
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unauth_destination, reject_invalid_hostname, reject_unknown_reverse_client_hostname, reject_non_fqdn_recipient, reject_unknown_sender_domain, check_recipient_access mysql:/etc/postfix/mysql_restricted_recipients.cf, permit
smtpd_relay_restrictions = permit_mynetworks, check_recipient_access mysql:/etc/postfix/mysql_restricted_recipients.cf, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/spam_senders_email, check_sender_access mysql:/etc/postfix/mysql_restricted_senders.cf, check_sender_access mysql:/etc/postfix/mysql_blacklist, permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/triata.pem
smtpd_tls_key_file = /etc/postfix/ssl/triata.key
smtpd_tls_received_header = no
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_session_cache
transport_maps = mysql:/etc/postfix/mysql_virtual_transport.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 0
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
virtual_transport = dovecot
virtual_uid_maps = static:1001