Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Postfix and smtp_generic_map

68 views
Skip to first unread message

Raphael Specht

unread,
Nov 8, 2008, 9:58:49 AM11/8/08
to
Hello,
i run since yesterday a Kolabserver. Now i send the Mails From Kolabs
Postfix over an smtp auth to my webserver, where also postfix runs. This
works with following main.cf entrys:

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/kolab/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous

Now i want to remove the local from the mailaddresses for all outgoing
mails.
rsp...@local.kontor-specht.de -> rsp...@kontor-specht.de

i have a generic file with following codeline:

/(.*)\@local\.kontor-specht.de/ ${1}@kontor-specht.de

Here the Test:
buri:/kolab# /kolab/sbin/postmap -q rsp...@local.kontor-specht.de
pcre:/kolab/etc/postfix/generic
rsp...@kontor-specht.de

So it seems to work, but when i convert in the .db file with postmap,
and include following line in my main.cf the mail also comes with local
in it to outside mailaddresses.

smtp_generic_maps = hash:/kolab/etc/postfix/generic

Do you have an solution for my problem?

Greetings Raphael Specht


Martin Gregorie

unread,
Nov 8, 2008, 9:53:30 PM11/8/08
to
On Sat, 08 Nov 2008 15:58:49 +0100, Raphael Specht wrote:

> Now i want to remove the local from the mailaddresses for all outgoing
> mails.
> rsp...@local.kontor-specht.de -> rsp...@kontor-specht.de
>

What have you got the following set to:

- the host name of your Postfix server
- the mydomain parameter
- the myorigin parameter


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |

0 new messages