LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 08-17-2009, 03:25 AM   #1
mrbubblesort
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: Debian / Ubuntu
Posts: 14
Thanked: 2
Postfix canonical maps failure


[Log in to get rid of this advertisement]
I have a Debian Lenny mail server with the most recent versions of Postfix & Dovecot, and delivering mail to users via a canonical db file. Sending mail is no problem, and any user NOT in the canonical file can receive mail. However, all mail to users in the canonical file are receiving mail. It's not bounced, just dropped. These are my main.cf and master.cf files, did I set something incorrectly or leave anything out?

Main.cf
Code:
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

biff = no
append_dot_mydomain = no
myhostname = (my server)
mydomain = (my server)
myorigin = $mydomain

alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
alias_database = hash:/etc/aliases

allow_mail_to_commands = alias,forward,include
inet_interfaces = all
mynetworks = 192.168.0.0/28, 127.0.0.0/8
mydestination = $myhostname, localhost.$mydomain, localhost,  $mydomain, www.$mydomain, mail.$mydomain

home_mailbox = Maildir/
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydomain
smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject
permit_sasl_authenticated, check_relay_domains, reject
notify_classes = policy, resource, software, bounce
broken_sasl_auth_clients = yes
content_filter = smtp-amavis:[127.0.0.1]:10024

Master.cf
Code:
smtp	  inet	n	-	-	-	-	smtpd
pickup	  fifo	n	-	-	60	1	pickup
cleanup	  unix	n	-	-	-	0	cleanup
qmgr	  fifo	n	-	-	300	1	qmgr
rewrite	  unix	-	-	-	-	-	trivial-rewrite
bounce	  unix	-	-	-	-	0	bounce
defer	  unix	-	-	-	-	0	bounce
flush	  unix	n	-	-	1000?	0	flush
smtp	  unix	-	-	-	-	-	smtp
showq     unix	n	-	-	-	-	showq
error     unix	-	-	-	-	-	error
local	  unix	-	n	n	-	-	local
virtual	  unix	-	n	n	-	-	virtual
lmtp	  unix	-	-	n	-	-	lmtp

cyrus	  unix	-	n	n	-	-	pipe
  flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
uucp	  unix	-	n	n	-	-	pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
smtp-amavis unix -      -       n       -       2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes

127.0.0.1:10025 inet n  -       n     -       -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000


smtps	  inet	n	-	n	-	-	smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

Some other info
Yes, both /etc/aliases & /etc/postfix/canonical exist
/etc/aliases is in the format "alias : username"
/etc/postfix/canonical is in the format "username (tab) alias"
I've also run the commands "newaliases" & "postmap /etc/postfix/canonical" after adding the users to each file.
Thank you very much!
mrbubblesort is offline  
Tag This Post , ,
Reply With Quote

Reply

Bookmarks


Thread Tools

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
[SOLVED] POSTFIX - virtual domain and alias maps results in 'unknown user' brenton.williams Linux - Server 2 08-19-2009 01:32 AM
Postfix mail delivery failure Ammad Linux - Server 7 06-14-2009 06:50 AM
Postfix SASL Authentication Failure linuxpyro Linux - Server 1 12-15-2008 10:29 PM
Help With Postfix Delivery Failure Carlwill Linux - Server 2 09-05-2008 05:36 PM
postfix canonical search order jittinan2 Linux - Software 1 06-18-2008 03:58 PM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration