View previous topic :: View next topic |
Author |
Message |
xeonburn Apprentice
Joined: 21 Oct 2003 Posts: 172
|
Posted: Thu Jul 06, 2006 11:26 pm Post subject: Postfix multi-domain virtual alias question |
|
|
I used the guide at http://www.gentoo.org/doc/en/virt-mail-howto.xml to set up my mail server...
My local domain is acm.cise.ufl.edu
My virtual domain is installstation.com
I can create virtual accounts using vmail no problem and I can use my local accounts no problem... however what I would like to do is have a virtual alias point towards a local account such as webmaster@installstation.com -> user@acm.cise.ufl.edu
I hoped it would work just by adding an entry to the Virtual database table but it did not (the mail I send to webmaster@installstation.com just disappears, can't find it anywhere and I get no error in return)
Anyone know how I could go about doing this? If you need to see database output or config files let me know which ones.
I appreciate the help. |
|
Back to top |
|
|
nativemad Developer
Joined: 30 Aug 2004 Posts: 918 Location: Switzerland
|
Posted: Fri Jul 07, 2006 11:00 am Post subject: |
|
|
Hi,
Have you ever asked yourself why there is an alias-table?
alias: webmaster@installstation.com
destination: user@acm.cise.ufl.edu
The Alias-User does not have to have an account, and the destination-User can also be external... |
|
Back to top |
|
|
xeonburn Apprentice
Joined: 21 Oct 2003 Posts: 172
|
Posted: Fri Jul 07, 2006 9:18 pm Post subject: |
|
|
Doesn't work. I get an error returned. "Recipient address rejected: User unknown in virtual mailbox table" |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri Jul 07, 2006 10:31 pm Post subject: |
|
|
The alias table is for local aliases or domains marked as local: rather than virtual: Assuming the incoming address is virtual, your aliases need to go into the virtual table. See Code Listing 7.5 in the how-to.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
xeonburn Apprentice
Joined: 21 Oct 2003 Posts: 172
|
Posted: Fri Jul 07, 2006 10:40 pm Post subject: |
|
|
I tried that. the mail just disappears though. It get no errors sent back but the message never gets to its destination.
Here is my main.cf if it helps
Code: |
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = mail.acm.cise.ufl.edu
mydomain = acm.cise.ufl.edu
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
mydestination = home.acm.cise.ufl.edu, acm.cise.ufl.edu, mail.acm.cise.ufl.edu, deeznuts.acm.cise.ufl.edu, localhost.acm.cise.ufl.edu, localhost
relayhost = mail.cise.ufl.edu
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rbl_client relays.ordb.org,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client multihop.dsbl.org,
permit
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
receive_override_options = no_address_mappings
local_transport = local
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
virtual_transport = virtual
virtual_mailbox_domains = installstation.com
virtual_minimum_uid = 1000
virtual_gid_maps = static:1002
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_uid_maps = static:1002
virtual_mailbox_base = /
home_mailbox = .maildir/
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
|
|
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri Jul 07, 2006 11:00 pm Post subject: |
|
|
Assuming your config is doing what you want it to do webmaster@installstation will be delivered to user@acm... which is a local system user, not a virtual user. Where do the logs say the mail is going? You might need to add a -v to the end of the smtpd line in master.cf and restart Postfix. That will increase the logging. Remember to remove it or your logs will get large quickly.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
xeonburn Apprentice
Joined: 21 Oct 2003 Posts: 172
|
Posted: Sat Jul 08, 2006 4:43 am Post subject: |
|
|
Nevermind, I keep getting errors. It didn't disappear the return mail was just going to my junk mail. |
|
Back to top |
|
|
|