Results 1 to 6 of 6
Hi guys,
I recently configured a postfix mail server with mysql backend,amavis and spamassassin with three domains.Everything works fine except that,mails for two of the virtual domains is not accepted ...
- 08-21-2007 #1Just Joined!
- Join Date
- Oct 2005
- Location
- Kampala,Uganda
- Posts
- 23
Recipient address rejected: User unknown in virtual mailbox table
Hi guys,
I recently configured a postfix mail server with mysql backend,amavis and spamassassin with three domains.Everything works fine except that,mails for two of the virtual domains is not accepted by postfix.That the users do not exist in the virtual table, yet they are in the users table of mysql,alongside the users of the only virtual domain for whom mails are recieved.
Below is the bounced message that is sent,
Hi. This is the qmail-send program at linuxsolutions.co.ug.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<linuxsols@dwd.go.ug>:
207.44.176.108 does not like recipient.
Remote host said: 550 <linuxsols@dwd.go.ug>: Recipient address rejected: User unknown in virtual mailbox table
Giving up on 207.44.176.108.
and here are my main.cf configs
readme_directory = no
myhostname = server.example.com
mynetworks = 127.0.0.0/8, x.x.x.x/24, x.x.x.x/24, x.x.x.x/24
mydestination = $myhostname, localhost, localhost.localdomain
virtual_alias_domains =
transport_maps = mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_limit = 512000000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_transport = virtual
virtual_uid_maps = static:5000
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = 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
alias_maps = hash:/etc/aliases
#
#
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
smtpd_helo_required = yes
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_non_fqdn_recipient,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client list.dsbl.org
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client opm.blitzed.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client multihop.dsbl.org,
check_policy_service inet:127.0.0.1:10023,
permit
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
And here is what I added to my master.cf,in addition to the normal config
amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=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,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
COULD ANYONE BE KNOWING I DID WRONG?
- 08-21-2007 #2
Hey,
Add this line at the end of the main.cf file:
virtual_maps = hash:/etc/postfix/virtusertable
and restart postfix.Regards,
who |grep -i blonde |
date; cd~; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep

Newbie clicks
http://www.linuxforums.org/forum/lin...ead-first.html
- 08-21-2007 #3Just Joined!
- Join Date
- Oct 2005
- Location
- Kampala,Uganda
- Posts
- 23
Hi info,
thanx but i did that and it still didn't work.What do you think?
- 08-21-2007 #4Just Joined!
- Join Date
- Oct 2005
- Location
- Kampala,Uganda
- Posts
- 23
More information:
When I send from one of the virtual domains on the same server,it gets delivered,but mails that come from without,are the ones which bounce.
Can some one please help?
- 08-21-2007 #5
Hey,
First of all i will suggest you to take a backup of your main.cf and master .cf files before making changes.
Change your server1.example.com to your domain name. If you go into /etc/local-host-names there should be your domain names entry. And when you go to /etc/postfix/virtusertable it should show you all email accounts which you added while configuring mail accounts.
Also i guess you should comment readme_directory = no Or make the option yes.
Though try both ways.
Moreover mydestination should be set to /etc/postfix/local-host-names just add this option at the end of mydestination line.
Restart postfix and give it a try.
If still it doesnt fix the problem post the output of your virtusertable file
Revert back if any problem.Regards,
who |grep -i blonde |
date; cd~; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep

Newbie clicks
http://www.linuxforums.org/forum/lin...ead-first.html
- 08-21-2007 #6Just Joined!
- Join Date
- Oct 2005
- Location
- Kampala,Uganda
- Posts
- 23
I thought i have no nedd for virtusertable file since all the accounts are in MYSQL and there are config files with querries to fetch this info from mysql?


Reply With Quote