Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix and modifying outgoing mail.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
taveren
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2002
Posts: 145
Location: London, Ontario

PostPosted: Thu Sep 15, 2005 8:16 pm    Post subject: Postfix and modifying outgoing mail. Reply with quote

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
View user's profile Send private message
tavs
n00b
n00b


Joined: 25 May 2005
Posts: 9
Location: Denmark

PostPosted: Sun Sep 18, 2005 6:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
taveren
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2002
Posts: 145
Location: London, Ontario

PostPosted: Mon Sep 19, 2005 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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