Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] postfix smtp_generic_maps problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
acc.johnson
n00b
n00b


Joined: 21 Mar 2005
Posts: 57

PostPosted: Fri Mar 17, 2006 7:23 pm    Post subject: [SOLVED] postfix smtp_generic_maps problem Reply with quote

Hi,

I followed the gentoo-wiki http://www.gentoo.org/doc/en/virt-mail-howto.xml
and http://postfix.state-of-mind.de/patrick.koetter/smtpauth/

to setup courier-imap/postfix/squirrelmail for my office network.

Since our internet access is through verizon adsl with dynamic ip assignment
I also configured in /etc/postfix/main.cf relayhost=[outgoing.verizon.net]
and since verizon requires smtp clients to authenticate, I also setup saslpass
following http://postfix.state-of-mind.de/patrick.koetter/smtpauth/index.html and
http://postfix.state-of-mind.de/patrick.koetter/smtpauth/sasldb_configuration.html

I can now send mail internally via postfix's sendmail and externally through verizon's
mail server. However, the return addresses on mail sent externally are not being rewritten
to replace our private user@localhost.localdomain with realuser@verizon.net

I followed the directions http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
and created an /etc/postfix/generic file containing my pairs of local email addresses and
external email address. I then indexed with `postmap generic`. But my mail's return addresses
are not being rewritten.

I am using the following
#postconf mail_version
mail_version = 2.2.5
#postmap -s generic
janedoe@myhost.mydomain realaddress+janedoe@verizon.net

THANKS in advance for any ideas on how to get smtp_generic_maps to rewrite
my return addresses.


Last edited by acc.johnson on Sat Mar 18, 2006 5:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
acc.johnson
n00b
n00b


Joined: 21 Mar 2005
Posts: 57

PostPosted: Sat Mar 18, 2006 5:06 pm    Post subject: Solved Reply with quote

I tried `sendmail -v somebody@somewhere.domain
and postifx correctly re-wrote localuser@localhost.localdomain to
realuser@realhost.realdomain

In squirrelmail's personal information plugin
there's a setting for email address and replay-to address.
The values I had for those weren't being looked up in my
generic db.

So I added to my generic translation table lines like the following

localuser@localdomain realuser@realhost.realdomain
localuser@localhost.localdomain realuser@realhost.realdomain

And I removed lines like
localuser@localdomain realuser+localuser@realhost.realdomain

because although verizon correctly sends emails addressed to
realuser+localuser@realhost.realdomain

it apparently rejects mail with headers with email & reply-to containing
the +localuser format.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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