LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-20-2015, 07:46 PM   #1
sawyer815
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Rep: Reputation: Disabled
postfix pipe all mail, except email to local domain


0

down vote

favorite



hi

i am using postfix as MTA in several machines. One of those machines work as a gateway to internet. the other machines are like regular mta's All machines have python scripts that do several functions, like generate email... Imagine this situation:
Machine A - MTA Gateway, domain is gate.problem.com
Machine B - MTa, domain is issue1.problem.com
Machine C - Mta, domain is issue2.problem.com


So in machine B,C any email that i want to send to internet domain has to pass by gateway. However some emails can go to another simple MTA in the network.

I have configured postfix to pipe all emails to scricpt if those email end in ".com", however when i send through gateway an email to issue2.problem.com (or 1) those mails when received in issue2/1 call the pipe transport function (thats the problem!!)

So. i want send all mails to script using pipe transport, except the mails destined to the local domain.

Hope some answers.

Best regards
 
Old 06-21-2015, 09:12 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by sawyer815 View Post
Machine B - MTa, domain is issue1.problem.com
Machine C - Mta, domain is issue2.problem.com

So in machine B,C any email that i want to send to internet domain has to pass by gateway. However some emails can go to another simple MTA in the network.

I have configured postfix to pipe all emails to scricpt if those email end in ".com", however when i send through gateway an email to issue2.problem.com (or 1) those mails when received in issue2/1 call the pipe transport function (thats the problem!!)
It's not quite clear to me where those scripts run, but perhaps your answer is on the standard configurations page: http://www.postfix.org/STANDARD_CONF...#local_network
 
Old 06-22-2015, 01:08 PM   #3
sawyer815
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
It's not quite clear to me where those scripts run, but perhaps your answer is on the standard configurations page: http://www.postfix.org/STANDARD_CONF...#local_network
Those scripts run in every machine. For understanding imagine that a script in Machine B genetares an email to be received by machine B domain/user. That email would have de destination parameter "user@issue1.problem.com".
Postfix in machine B will receive the email, however won't send it to mailbox. instead cal the script again, because the transport file is configured to ".com" domain.

my objetive is transfer email messages between machines/domains, by another network type, not the conventional..
I want call the script just when i create the email in the same machine...

Is any possible configuration in transport file to make an exception? like for exemple

.com :script
issue1.problem.com :"dont call the script"

Last edited by sawyer815; 06-22-2015 at 02:31 PM.
 
Old 06-23-2015, 11:23 AM   #4
sawyer815
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
may close the thread
just find out

here goes the transport file:

issue1.problem.com$/ :
.com$/ script:
 
  


Reply



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
[SOLVED] Setup Postfix to Send Local Mail to Internet Email Address sumit1203 Linux - Newbie 1 09-02-2012 01:55 AM
Mail Server with : Postfix,dovecot. (Can send email, but can't receive email from internet mail) cparapat Linux - Server 1 08-16-2010 12:57 AM
postfix configuration problem -> domain mx has moved but old mail host still local stardotstar Linux - Server 2 10-24-2009 11:49 PM
Postfix cant send mail in local or any outer domain vikki Linux - Server 4 07-22-2009 03:40 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:19 AM.

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