LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix not delivering to dovecot for local users (delivering to default user mail) (https://www.linuxquestions.org/questions/linux-server-73/postfix-not-delivering-to-dovecot-for-local-users-delivering-to-default-user-mail-743115/)

Awalsh 07-27-2009 11:13 AM

Postfix not delivering to dovecot for local users (delivering to default user mail)
 
Hello,

I am currently in the process of setting up a postfix/dovecot mailserver on Centos 5 as a replacement for an aging exchange server.

I have managed to get postfix to send to external addresses with no issues however when I attempt to send an email to an address which should be handled by dovecot (as it is a local user). I find that the email is just thrown in the users inbox for the default user mail system which is on *nix (poorly described I know).

So currently I can send messages to local users but cannot check them via IMAP/dovecot. I have to check them via mailx -u USERNAME where they display fine.

It appears that all the local user emails are just bypassing dovecot as there are no records.

Also dovecot is setup with MySQL as a backend (for the mailboxes I believe) and I can browse mailboxes in /vmail/DOMAIN/USER/ (they are maildir mailboxes apparently). I havent posted the config for dovecot because there are only small changes which enables the MySQL side of things which appears to be working. However if needed I can post this.

If anyone can shed some light on what im possibly doing wrong then it would be greatly appreciated. As you can probably tell this is my first real attempt at anything to do with mailservers :)


Thanks

Andrew

P.S: in the postfix config file below odonnells-test.com is just redirected to the local machine in /etc/hosts



Configuration Files


Postfix - postconf -n

Code:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = /usr/share/doc/postfix-2.5.1-documentation/html
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 52428800
mydestination = $myhostname, localhost, localhost.localdomain
myhostname = odonnells-test.com
mynetworks = 127.0.0.0/8
myorigin = odonnells-test.com
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.1-documentation/readme
recipient_delimiter = +
relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (CentOS/GNU)
smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce, permit
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, permit
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:8
virtual_mailbox_base = /vmail
virtual_mailbox_domains = proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_maildir_limit_message = "The user you are trying to reach has exceeded their quota."
virtual_minimum_uid = 150
virtual_overquota_bounce = yes
virtual_transport = dovecot
virtual_uid_maps = static:150



All times are GMT -5. The time now is 08:25 AM.