LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix with pop3 AND aliases (https://www.linuxquestions.org/questions/linux-server-73/postfix-with-pop3-and-aliases-563183/)

Jeozp 06-20-2007 07:14 AM

Postfix with pop3 AND aliases
 
Greetings to you all :)
I have a question which I haven't been able to find a reference here or on Google.

I would like to be able to mix aliases and pop3.

Let me explain. I have an exchange server in the office which receives mail from a postfix server. This I achieved via aliases. So in the aliases file I have a line like so:
jeozp: jezozp@mydomain.local
where jeozp is my email address and jezozp is my username on the exchange server.

I would now like to be able to create a pop3 mailbox on the postfix server for jezozp but not for any others (I don't have good experience with exchanges pop3connector).
So how can I achieve this?
Transport tabels, Virtual tables? What would that look like?
What would I need to put in my main.cf? Which pop3 service to use?

any help would be apriciated

i am using Debian etch/testing and postfix 2.3.8-2+b1
and here is the output of my postconf -n

alias_database = hash:/etc/aliases2
alias_maps = hash:/etc/aliases2
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
disable_vrfy_command = yes
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 0
mydestination = tango.com.hr, mail.tango.com.hr, triger.tango.com.hr, localhost.tango.com.hr, localhost, triger.localhost
myhostname = mail.tango.com.hr
mynetworks = 127.0.0.0/8 10.10.0.0/23 #192.168.150.0/24 192.168.201.0/24
myorigin = $mydomain
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = Tango Communications, play nice.
smtpd_client_restrictions = reject_rbl_client list.dsbl.org reject_rbl_client dnsbl.sorbs.net reject_rbl_client cbl.abuseat.org reject_rbl_client cbl.abuseat.org
smtpd_helo_required = yes
smtpd_sender_restrictions = reject_non_fqdn_sender
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes

oli 06-20-2007 11:17 AM

You could install Dovecot, then add a new user account for 'jezozp'. Then you'd just need to add an entry into your aliases file to direct mail into the mailbox of your new user and you should be able to download it with any standard pop3 email client.

Postfix is an MTA so the POP3 issues is seperate.

Jeozp 06-21-2007 07:13 AM

First of, thanks for the reply :)
I didn't do what you suggested exactly, I installed dovecot but I didn't create any mailboxes. I just created a unix user jeozp and mail is now delivered to /var/mail/jeozp
Which is ok. But...

now I would like to have mail be picked up by pop3 for subdomains as well.
for example I have jeozp[at]sub1.mydomain.com and jeozp[at]sub2.mydomain.com and of course it all ends up at the same place (/var/mail/jeozp)
How can I make them different?

Just when I thought I might get away easy too :)

oli 06-21-2007 07:22 AM

This page explains what you are trying to do:
http://www.postfix.org/VIRTUAL_READM...#virtual_alias

:)

Jeozp 06-21-2007 10:24 AM

Ahhh the polite way to say RTFM,
nice to see my sig wasn't made for nothing ;)
Thank you again and thank you a lot, u helped immensely :D


All times are GMT -5. The time now is 03:56 PM.