Bluehost.com Web Hosting $6.95

RE: Address Rewriting question

This is a discussion on RE: Address Rewriting question within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi Viktor and thanks for your help. I will rephrase my question, because what you proposed I think does not ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-21-2005
Ioannis Michaelides
 
Posts: n/a
Default RE: Address Rewriting question

Hi Viktor and thanks for your help.

I will rephrase my question, because what you proposed I think does not
apply to my case:

I need that the recipient's address of every email sent to:

<any user>@test.larnaca.cy

To be rewritten with:

<any user>/type=3DPLMN@testing.larnaca.cy

What shall I enter in the file /etc/postfix/virtual
regexp:/etc/postfix/virtual and what should be the value of the
virtual_alias_map in the /etc/postfix/virtual.

Thanks in advance.

Best Regards
Ioannis Michaelides


-----Original Message-----
From: owner-postfix-users@postfix.org
[mailto:owner-postfix-users@postfix.org] On Behalf Of Victor Duchovni
Sent: 21 January 2005 16:13
To: postfix-users@postfix.org
Subject: Re: Address Rewriting question

On Fri, Jan 21, 2005 at 09:39:36AM +0200, Ioannis Michaelides wrote:

> =20
> Hi!
>=20
> I am new in PostFix, so your help would be very appreciated.
>=20
> I have an email server, running Postfix 2.1.1. on a Mandrake Corporate


> serve r 3.0.
>=20
> The server has one registered domain with it's IP, which is=20
> testc.larnaca.cy , and therefore every email sent to that domain are=20
> received by my email ser ver.
>=20
> The email server has been already configured to forward the received=20
> emails=3D20 for this domain to a second server in the local network. =

The

> problem is that this second server accepts only emails for the domain


> test.larnaca.cy (one=3D20 c is missing) and in addition requires a=20
> prefix "/type=3D3DPLMN" before =3D the @ si gn.
>=20
> Is there a mapping that can rewrite the recipients address from=3D20
>=20
> any_user@testc.larnaca.cy
>=20
> to
>=20
> any_user/type=3D3DPLMN@test.larnaca.cy
>=20


http://www.postfix.org/ADDRESS_REWRI...E.html#virtual

virtual_alias_maps =3D
${default_database_type}:${config_directory}/virtual

virtual:
user1@test.larnaca.cy user1/type=3D3DPLMN@test.larnaca.cy
user2@test.larnaca.cy user2/type=3D3DPLMN@test.larnaca.cy

This can also be done once for all users with regexp virtual table, but
that breaks recipient validation and so is strongly discouraged.

--=20
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@postfix.org?body=3Dunsubscribe%2 0postfix-users>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0