Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix multi-domain virtual alias question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xeonburn
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 172

PostPosted: Thu Jul 06, 2006 11:26 pm    Post subject: Postfix multi-domain virtual alias question Reply with quote

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
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Fri Jul 07, 2006 11:00 am    Post subject: Reply with quote

Hi,

Have you ever asked yourself why there is an alias-table? :wink:
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... :wink:
Back to top
View user's profile Send private message
xeonburn
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 172

PostPosted: Fri Jul 07, 2006 9:18 pm    Post subject: Reply with quote

Doesn't work. I get an error returned. "Recipient address rejected: User unknown in virtual mailbox table"
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Jul 07, 2006 10:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
xeonburn
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 172

PostPosted: Fri Jul 07, 2006 10:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Jul 07, 2006 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
xeonburn
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 172

PostPosted: Sat Jul 08, 2006 4:43 am    Post subject: Reply with quote

Nevermind, I keep getting errors. It didn't disappear the return mail was just going to my junk mail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum