LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-17-2009, 02:55 PM   #1
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 13.1
Posts: 52

Rep: Reputation: 15
email subaddressing under CentOS 5.2/Postfix


Hello—

I want to enable subaddressing (plus addressing, detail addressing, address extensions, whatever you want to call it) on my mail server. I've found a few guides but they have all related specifically to IMAP servers. Many of my users don't bother with POP or IMAP. (I still use mail occasionally myself.)

Unfortunately, I know very little about how subaddressing actually works. It seems like it could just be a matter of setting a postfix configuration option to allow subaddressing, postfix will then dump everything with the appropriate username portion in the appropriate mailbox, and then users' procmail rules can handle it from there.

Any information at this point would be helpful, as I am completely out to sea here and my usual peers all looked at me blankly when I asked about it.

Thanks—
quiescere
 
Old 03-18-2009, 11:57 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
The usual way is to enable the recipient delimiter parameter (typically recipient_deliter = +) and then you can use .forward+ to determine the action.

For example, on my system, amavisd adds user+badh to mail with bad headers. In my home directory, I have a file .forward+badh that contains
Code:
~/Maildir/.Badh/
and mail is deliverd to the .Badh subdirectory.
 
Old 03-19-2009, 12:09 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
From the postfix documentation page
Code:
recipient_delimiter (default: empty)

    The separator between user names and address extensions (user+foo). See canonical(5), local(8), relocated(5) and virtual(5) for the effects this has on aliases, canonical, virtual, relocated and on .forward file lookups. Basically, the software tries user+foo and .forward+foo before trying user and .forward.

    Example:

    recipient_delimiter = +
 
1 members found this post helpful.
Old 03-19-2009, 09:28 PM   #4
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 13.1
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
The usual way is to enable the recipient delimiter parameter (typically recipient_deliter = +) and then you can use .forward+ to determine the action.
Thanks much for this. The only other things I had to do were change the procmail command in /etc/postfix/main.cf:
Code:
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
and of course, pull my hair out until I remembered to run postmap on the affected file.

Thanks much for your reply.
 
Old 03-20-2009, 01:36 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What did you need to run postmap on?
 
  


Reply

Tags
email, postfix


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
Email server running Postfix will not accept email... trekgirl Linux - Server 12 03-04-2009 01:43 AM
how to make postfix send email to another postfix in local network (LAN)? h4k33m Linux - Server 7 01-19-2009 04:26 PM
Postfix: help required to configure postfix to redirect email. Wheddod Linux - Software 3 08-20-2008 07:55 AM
Postfix: cant send email from my Windows pc using my postfix mailserver elvisious Linux - Software 8 08-01-2008 07:01 PM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 04:43 AM


All times are GMT -5. The time now is 11:32 PM.

Main Menu
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