Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: catch-all but n address?

  1. #1
    Join Date
    Oct 2012
    Location
    Geekland
    Beans
    Hidden!
    Distro
    Kubuntu

    catch-all but n address?

    Ok, basically I want to know how to alias a postfix email in such a way as to redirects all non-registered "aliases" to one account:
    virtual user "bob@example.com" receives things sent to bob@example.com and forums@example.com
    virtual user "joe@example.com" receives things sent to joe@example.com and bugs@example.com
    virtual user "admin@example.com" receives anything virtual user "bob@example.com" or "joe@example.com" does not such as xyz@example.com

    Is there a way I can do this?
    Last edited by wolfgentleman; January 6th, 2014 at 06:37 PM. Reason: grammar, fixed autolinking

    Sincerely,
    Patrick Thomas (Timberwolf)
    Timberwolf Programmers Owner & Founder


  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: catch-all but n address?

    See here:
    http://www.howtoforge.com/virtual-us...buntu-11.04-p4

    In short, add a alias that reads:

    Code:
    @example.com                admin@example.com
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Oct 2012
    Location
    Geekland
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: catch-all but n address?

    Quote Originally Posted by CharlesA View Post
    See here:
    http://www.howtoforge.com/virtual-us...buntu-11.04-p4

    In short, add a alias that reads:

    Code:
    @example.com                admin@example.com
    Yeah, but wouldn't that redirect everything to that user? Or would it redirect the rest of them? Or would everything arrive in that user's inbox as well as the other aliases? I found that as a catch-all when I was going to be using just one user, but I decided to do it different... Also could I have something direct things coming from one address to multiple users? I am thinking about setting it up so that when I give someone on my site admin I can add them as a user in the mail system and maybe a unified inbox for that address? Or what about one set of folders with multiple user logins? Well, that wouldn't work as I wouldn't want them replying to webmaster@, postmaster@, and {user}@... Any ideas are welcome and appreciated.

    Ok, now how would I have unify the "Sent" folder amongst multiple (but not all) users, forcing a copy of all items sent - through SMTP or otherwise to the Sent folder, to prevent duplicate replies? Not a necessity but it would be nice...
    Last edited by wolfgentleman; January 7th, 2014 at 07:30 PM. Reason: sorry posted before I looked at the link, reading the rest of it now...

    Sincerely,
    Patrick Thomas (Timberwolf)
    Timberwolf Programmers Owner & Founder


  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: catch-all but n address?

    I don't know if that is possible server side, or if you need to have your mail client do it for you.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,835
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: catch-all but n address?

    Quote Originally Posted by wolfgentleman View Post
    Ok, now how would I have unify the "Sent" folder amongst multiple (but not all) users, forcing a copy of all items sent - through SMTP or otherwise to the Sent folder, to prevent duplicate replies? Not a necessity but it would be nice...
    Messages are written to the Sent folders via IMAP connections from the clients. You could write a script that periodically copies those messages to a global Sent folder. I've use PHP for some tasks like this because it has good IMAP functions. For instance, you could write a script that would identify new mail in each person's Sent folder and copy those messages to the global folder. I've done this to rotate users' spam folders or archive old messages periodically.

    Another alternative is to grab a copy of users' outbound mail while it traverses the SMTP server and write it to a common Sent folder. I can think of ways to do this with applications like MailScanner (via it's "archive" function) but not with SMTP server software like Postfix or sendmail themselves. That doesn't mean it isn't possible.
    Last edited by SeijiSensei; January 8th, 2014 at 10:40 PM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  6. #6
    Join Date
    Oct 2012
    Location
    Geekland
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: catch-all but n address?

    Quote Originally Posted by SeijiSensei View Post
    Another alternative is to grab a copy of users' outbound mail while it traverses the SMTP server and write it to a common Sent folder. I can think of ways to do this with applications like MailScanner (via it's "archive" function) but not with SMTP server software like Postfix or sendmail themselves. That doesn't mean it isn't possible.
    This something like what I was thinking about... What about a mail filter, manageseive I believe it was? Although this would have done better in the other thread I had... Should I reopen the other thread? Or maybe it should be merged?

    Sincerely,
    Patrick Thomas (Timberwolf)
    Timberwolf Programmers Owner & Founder


  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: catch-all but n address?

    Separate questions.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #8
    Join Date
    Oct 2012
    Location
    Geekland
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: catch-all but n address?

    Hmmm... Seems that:
    Code:
    test@example.com 123@example.com
    @example.com catch-everything-else@example.com
    is the equivalent of:
    Code:
    @example.com catch-everything-else@example.com
    So, I reopened the thread. What do I do?
    Here is my (current) MySQL table:
    Code:
    id       domain_id     source                                  destination
    1        1             helpfulbatchfiles@twprogrammers.com     hbf@twprogrammers.com
    2        1             co-owner@twprogrammers.com              hbf@twprogrammers.com
    3        1             co-founder@twprogrammers.com            hbf@twprogrammers.com
    100      1             @twprogrammers.com                      admin@twprogrammers.com
    1000     4             @hawkladybeadery.com                    REMOVED@satx.rr.com
    Last edited by wolfgentleman; February 3rd, 2014 at 03:09 AM.

    Sincerely,
    Patrick Thomas (Timberwolf)
    Timberwolf Programmers Owner & Founder


  9. #9
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: catch-all but n address?

    Uhhh. What email did you send the email to?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  10. #10
    Join Date
    Oct 2012
    Location
    Geekland
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: catch-all but n address?

    I sent it to: hbf@twprogrammers.com
    and received it at: admin@twprogrammers.com

    Sincerely,
    Patrick Thomas (Timberwolf)
    Timberwolf Programmers Owner & Founder


Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •