LinuxQuestions.org
Review your favorite Linux distribution.
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 08-08-2008, 05:30 AM   #1
unifiedquarks
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Rep: Reputation: 0
Postfix alias table problem..


Hii

I am using Postfix as a MTA, with mysql based virtual user support (ubuntu server, postfix_2.4.5, mysql-server_5.0.45)

I am trying add some mailman aliases into /etc/aliases file like :

mailman: "|/var/lib/mailman/mail/mailman post mailman"


Although I employed "postalias" and "newaliases" commands and restart the postfix, it seems that the alias is not working.

also I realized that alias table doesnt work at all, I test this adding following line into the /etc/aliases

analias : avirtualuser@mydomain

and send some emails to analias@mydomain. The mail returns to me with

"Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command)" info..


I think the problem is related with mysql based virtual hosting but not sure. According to following conf, do I need change something???


my main.cf :


smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

append_dot_mydomain = no

smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache


myhostname = "mydomain"
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = "mydomain", localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf,mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
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
 
Old 08-08-2008, 10:00 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does a normal alias work, so the root alias for example? All that demo shows is your virtual aliases are stuffed

What messages are in your log when you try and send a message to mailman?

Last edited by billymayday; 08-08-2008 at 10:04 PM.
 
Old 08-09-2008, 02:03 AM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
and send some emails to analias@mydomain. The mail returns to me with

"Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command)" info..
The question you should ask is, How did analias@mydomain end up being checked against the virtual mailbox
table when mydomain was listed in mydestination?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
qmail stats:Recipient address rejected: User unknown in virtual alias table/Giving up Niceman2005 Linux - Software 0 08-19-2007 09:13 PM
postfix alias domains csaunders Red Hat 1 04-17-2007 12:44 PM
How do I use a regexp in Postfix alias table? quackking Linux - Server 11 04-13-2007 01:10 PM
Postfix Alias Problem irishred Linux - Server 3 01-16-2007 03:12 PM
Postfix: restrict delivery of mail to users in alias table noeffred Linux - Software 1 02-02-2005 05:05 PM


All times are GMT -5. The time now is 06:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration