View previous topic :: View next topic |
Author |
Message |
taveren Tux's lil' helper
Joined: 24 Jul 2002 Posts: 145 Location: London, Ontario
|
Posted: Thu Sep 15, 2005 8:16 pm Post subject: Postfix and modifying outgoing mail. |
|
|
I have a working Postfix setup for internal/external mail. I use it for multiple domains, but I'm having trouble modifying the outgoing address for a user. Basically, I have one user who's mail should go out as user2@domain2.com, rather than user2@domain.com. According to the docs, I should be able to do this:
Quote: | /etc/postfix/main.cf:
smtp_generic_maps = hash:/etc/postfix/generic
/etc/postfix/generic:
user2 user2@domain2.com
|
This, of course, doesn't work, even after running "postmap /etc/postfix/generic" to generate the real database. Any ideas? |
|
Back to top |
|
|
tavs n00b
Joined: 25 May 2005 Posts: 9 Location: Denmark
|
Posted: Sun Sep 18, 2005 6:03 pm Post subject: |
|
|
I've had the same problem, buggered the hell out of me. Then I noticed that the postfixversion installed is 2.1.5. The smtp_generic_maps only works after postfix 2.2, trick is to use the other fix mentioned in http://www.postfix.org/STANDARD_CONFIGURATION_README.html#fantasy. And wait patiently 'till we get postfix 2.2 in portage _________________ Hedehusene (s.) -n [Hackish: Hede = newbie; husene = guru]
Ceremonial recompiling of all software on the system.
"Changing of the CHOST variable should be immediately followed
by hedehusene." (Gentoo Handbook, 2005) |
|
Back to top |
|
|
taveren Tux's lil' helper
Joined: 24 Jul 2002 Posts: 145 Location: London, Ontario
|
Posted: Mon Sep 19, 2005 1:37 am Post subject: |
|
|
You know, that thought sort of crossed my mind when I read the version requirements, but thought "Nah, this is Gentoo, I'm sure I'm all up to date." Showed me.
Thanks, this worked great. |
|
Back to top |
|
|
|
|
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
|
|