LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-27-2009, 11:13 AM   #1
Awalsh
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
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

Last edited by Awalsh; 07-27-2009 at 11:21 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Delivering to Extra Users msjenkins Linux - Server 2 09-11-2007 07:54 PM
Dovecot not delivering mail in FC5 OrcPeon Fedora 1 09-30-2006 04:35 PM
Postfix/Cyrus Not delivering mail nitsujw Linux - Software 1 07-17-2005 06:16 PM
postfix not delivering mail to root pbaumgar Linux - Software 1 06-25-2004 12:44 AM
postfix not delivering mail stir_frey Linux - Software 2 10-10-2003 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration