Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-23-2004, 11:39 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Postfix transport map and regular expressions

Hi All,

I have a RH 8 server running Postfix. Postfix is running as an inbound mail gateway, relaying to several back-end servers. The problem I'm having is trying to get Regular Expressions working on the email addresses in the transport map file.

I'm trying to distribute load across the back-end servers by having email addresses mapped like this: smtp:[] smtp:[] smtp:[]

I can test the transport file by running:

postmap -q - regexp:/etc/postfix/transport < /etc/postfix/textfile_w_addresses.txt

This works perfectly and will return the correct mapping.

It does not work when applied to the Postfix server. The server simply defaults to the main domain name and bounces the email because it points at itself.

Here is what my transport map file looks like:

/^[aA].* smtp:[]
/^[bB].* smtp:[]
/^[cC].* smtp:[]

Thanks in advance!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Expressions markjuggles Programming 2 05-05-2005 12:39 PM
Regular Expressions overbored Linux - Software 3 06-24-2004 03:34 PM
Postfix transport map table?? emilioestevezz Linux - Networking 0 05-05-2004 02:59 PM
Regular expressions aromes Linux - General 1 10-15-2003 01:29 PM
regular expressions? alaios Linux - General 2 06-11-2003 04:51 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration