Discussion:
Help With generic
(too old to reply)
m***@gmail.com
2015-09-09 23:38:11 UTC
Permalink
I'm having problems getting generic to forward local mail to an "real" email address.

I have this line in main.cf: smtp_generic_maps = hash:/etc/postfix/generic

I have this line in generic: mnewman ***@mac.com

I get this result from running postmap with -s:

Bleach:postfix mnewman$ postmap -s hash:/etc/postfix/generic
mnewman ***@mac.com

But mail sent to mnewman ends up in the local mailbox and is nor forwarded to my Dot Mac mail address.

Oddly, if I use the aliases file to forward local mail, it works fine.

How can I figure out why generic is not being used by postfix?
d***@gmail.com
2015-09-10 11:12:14 UTC
Permalink
Post by m***@gmail.com
But mail sent to mnewman ends up in the local mailbox and is nor forwarded to my Dot Mac mail address.
Oddly, if I use the aliases file to forward local mail, it works fine.
How can I figure out why generic is not being used by postfix?
Postfix using smtp_generic_maps to transform a locally valid address into a globally valid address when sending mail across the Internet.

http://www.postfix.org/postconf.5.html#smtp_generic_maps
m***@gmail.com
2015-09-10 21:48:55 UTC
Permalink
Post by d***@gmail.com
Postfix using smtp_generic_maps to transform a locally valid address into a globally valid address when sending mail across the Internet.
http://www.postfix.org/postconf.5.html#smtp_generic_maps
Yes, I have done exactly as described there. It doesn't work.
d***@gmail.com
2015-09-11 11:36:17 UTC
Permalink
Post by m***@gmail.com
Post by d***@gmail.com
Postfix using smtp_generic_maps to transform a locally valid address into a globally valid address when sending mail across the Internet.
http://www.postfix.org/postconf.5.html#smtp_generic_maps
Yes, I have done exactly as described there. It doesn't work.
"transform a locally" _sender_ "address"

smtp_generic_maps = hash:/etc/postfix/generic_map

$ cat /etc/postfix/generic_map
www-data ***@myserver.net


MAIL FROM:<www-user> => MAIL FROM:<***@myserver.net>
m***@gmail.com
2015-09-12 01:44:51 UTC
Permalink
http://www.postfix.org/ADDRESS_REWRITING_README.html#generic

http://www.postfix.org/ADDRESS_REWRITING_README.html#aliases

m***@gmail.com
2015-09-11 07:33:43 UTC
Permalink
Well, I finally gave up. After hours of research I cannot solve this problem and, it seems, neither can anyone else.

I have deleted all the entries from generic and have gone back to aliases for forwarding to both internal and external email addresses. It works.
Loading...