Results 1 to 3 of 3

Thread: MiniHowto: Make Postfix rewrite sender header on local mails

  1. #1
    Join Date
    Apr 2005
    Location
    Xpain
    Beans
    117
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    MiniHowto: Make Postfix rewrite sender header on local mails

    This Mini-Howto describes howto make Postfix to send local emails with your preferred email addreass as the "sender" header.
    This means that when you send mails using "mail" or mails automatically sended by root,you can get your email at the from field.
    That's the way you get it:

    (1) Create the /etc/postfix/sender_canonical, and add user -> email references like this:
    Code:
    $ sudo vi /etc/postfix/sender_canonical
    
    infinito     infinito@hotmail.com
    root         infinito@hotmail.com
    (2) Create /etc/postfix/sender_canonical.db file
    Code:
    $ sudo postmap hash:/etc/postfix/sender_canonical
    (3) Add sender_canonical variable to /etc/postfix/main.cf
    Code:
    postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"
    (4) Restart Postfix
    Code:
    $ sudo /etc/init.d/postfix restart
    Hope this is useful for someone...
    Last edited by infinito; May 31st, 2005 at 05:30 PM.

  2. #2
    Join Date
    Oct 2004
    Location
    Munich - Germany
    Beans
    15

    Re: MiniHowto: Make Postfix rewrite sender header on local mails

    Quote Originally Posted by infinito
    This Mini-Howto describes howto make Postfix to send local emails with your preferred email addreass as the "sender" header.
    Hi infinito,

    can you also describe, how postfix can rewrite mails depending on the used username at the SMTP AUTH? So f.ex. you must login at the server to send mails and when you login as "greatguy" all your emails get a "greatguy@company.com" FROM. A nice feature would also be when the mail body could be modified (appending some special signature), but that's not very important, just a nice feature.

    Thank you very much!
    Marcel

  3. #3
    Join Date
    Jan 2011
    Beans
    2

    Re: MiniHowto: Make Postfix rewrite sender header on local mails

    This was exactly what I needed ! My ISP required a FQDN, and your little howto showed me how to give it just that

    Thanks a lot

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
  •