routing all mails to customized processor, without individual mail directory

2010-07-31 Thread Zhou, Yan
Hi there, We are intergrating Postfix with a J2EE backend, where all user accounts and configuration are in J2EE layer with database. Because of this architecture, we do not want to having to maintain individual user mail directory, or user account. In other words, if we add a new email addres

RE: routing all mails to customized processor, without individual mail directory

2010-07-31 Thread Zhou, Yan
delay=0.16, delays=0.14/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "") From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Zhou, Yan Sent: Saturday, July 31, 2010 9:45 AM To: postfix-users@postfix.org Subject: routing all mails to cust

RE: routing all mails to customized processor, without individual mail directory

2010-07-31 Thread Zhou, Yan
Thanks to all, having "connector:" did fix the problem! I also made a couple of other configuration changes, but these are minor. Yan Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for

control error behavior, into deferred queue instead of rejected

2010-08-02 Thread Zhou, Yan
Hi there, I implemented my own mail processor (Java program processing mails), and defined my transport for that. The problem is if my Java program throws an exception, the mail is rejected and back to the sender. What I want is for it to go to the deferred queue. How can I do that? Either dir

RE: control error behavior, into deferred queue instead of rejected

2010-08-02 Thread Zhou, Yan
Solved my problem by having my transport returning appropriate error code. Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended

Postfix SMTP AUTH using Oracle

2010-08-06 Thread Zhou, Yan
Hi there, I have seen success stories with SMTP AUTH integrating with both MySQL and LDAP, but our user/configuration are stored in Oracle 10g database. Is there any info. on integrating Postfix with Oracle? Thanks, Yan Confidentiality Notice: The information contained in this electro

separate bounced and regular email after using transport

2010-08-17 Thread Zhou, Yan
Hi there, I have defined my own process to handle all incoming emails, by using a local transport. My master.cf has entry like this, where the Python script delegates each mail processing to somewhere else. connector unix - n n - - pipe flags= user=testuse

RE: separate bounced and regular email after using transport

2010-08-18 Thread Zhou, Yan
> > By default, Postfix delivery decisions are based solely on envelope > recipient addresses. If you send mail to a non-existent address, > then the non-delivery report will be sent to your email address. > > You can configure Postfix via access(5), header_checks(5) and > body_checks(5) tables t

Postfix/LDAP beginner question

2010-08-24 Thread Zhou, Yan
Hi there, I am using Postfix 2.4.3. As my first step to integrate with Postfix, I wish to look up LDAP for local user. I did not recompile Postfix because I thought it comes with LDAP support. My ldap log does show that Postfix is trying to look up, so I think it is fine there. main.cf reads li

Postfix integration: Oracle or LDAP?

2010-08-25 Thread Zhou, Yan
Hi there, We want to implement SMTP authentication in Postfix and support multiple virtual domains. Rather than having user/domain/endpoint in different files, we prefer them either in database (Oracle) or LDAP. I am trying to weigh the pros and cons of both options. I have not seen examples abou

which ldap version does Postfix support?

2010-08-26 Thread Zhou, Yan
Hi There, What version of LDAP interface does Postfix 2.4.x support? I know it does not support version 1, but cannot find anything about whether it supports version 2 or 3? Thanks, Yan Confidentiality Notice: The information contained in this electronic transmission is confidential

Customized transport with multiple recipients

2010-09-02 Thread Zhou, Yan
Hi there, If Postfix server gets a mail message with multiple TO: address (i.e., multiple recipients), does Postfix send one message to each address? If so, at what stage does this happen? The postfix log seems to indicate that. For my Postfix, I customized my transport in postfix like this, t

LDAP trouble with Postfix

2010-09-30 Thread Zhou, Yan
Hi there, I am using Postfix 2.3.3 to integrate with RedHat Open LDAP server. I verified that my LDAP set up is correct, because I used the same configuration on another Postfix server, it worked. The following is how I ask LDAP to validate domain name. main.cf: mydestination = $myhostname, l

RE: LDAP trouble with Postfix

2010-09-30 Thread Zhou, Yan
Thanks, Jeroen, see my comment below. > > postmap -qv test.medplus.com ldap:acceptdomains > > postmap: fatal: open database test.medplus.com.db: No such file or > > directory > > > This is the output of postmap -vq test.medplus.com ldap:acceptdomains It does query into LDAP but returns noth

one Postfix instance serving messages in two different directions

2010-10-25 Thread Zhou, Yan
Hi there, How can I have one single Postfix instance routing messages differently, depends on which IP address they are arriving at SMTP. If an outside connection arrives, Postfix will deliver message to my customized transport, which calls a script and passes the message. If an internal connec

RE: one Postfix instance serving messages in two different directions

2010-10-25 Thread Zhou, Yan
Can you elaborate how different smtpd can have different transport settings? I won't want to create my own SMTPD process. The following won't work, because the "transport" cannot distinguish IP address. I tried this but does not work. I wonder if only smtp process can vary based on different IP.

Questions with Postfix TLS, SASL over LDAP

2010-11-02 Thread Zhou, Yan
Hi there, I have two Postfix instances, I wish to set up 1. one with SSL so that clients can connect and send messages to it, WITHOUT authentication but the session is secure, this requires Postfix with TLS support. 2. the other with SASL2 support so that clients will need authentication, but th

how to customize local delivery agent's user

2010-11-08 Thread Zhou, Yan
Hi there, When Postfix' local delivery agent gets a mail, it drops it into the user's maildir folder, the user name is the user portion of the email address. But, how can I customize it so that all emails with the recipient address: postfixd...@domain get dropped into user "jsmith" Maildir/? W

what is difference between mail_spool_directory and home_mailbox?

2010-11-12 Thread Zhou, Yan
Hi there, What is the difference between: mail_spool_directory and home_mailbox? Are they both for user's mailbox? Thanks, Yan NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use,

how to support relay host with per-IP routing

2010-11-16 Thread Zhou, Yan
Hi there, I have Postfix integrated with LDAP, Postfix will validate against LDAP for recipient and domain. But for messages to "medplus.com", I want it to use mail relay to another SMTP server at our company. What complicates the matter is that I have one Postfix instance serving messages from t

RE: how to support relay host with per-IP routing

2010-11-16 Thread Zhou, Yan
g > > On Tue, Nov 16, 2010 at 01:41:47PM -0500, Zhou, Yan wrote: > > > My theory is that message will be validated against LDAP first, if > the > > address is not found in LDAP, it would gets relayed using relayhost, > is > > that correct? > > Not if

how to define two different transports in one Postfix instance with two IP

2010-11-16 Thread Zhou, Yan
Hi there, This is I wish to accomplish with one single instance of Postfix that has two different IPs. Having traffic coming to one IP be processed differently than the other, and use LDAP to validate domain & recipients. This is master.cf: (I do not know how to define separate transports) :sm

RE: how to define two different transports in one Postfix instancewith two IP

2010-11-17 Thread Zhou, Yan
Hi there, I appreciate everyone's trying to help, that is what I like about this group. Here is the context of what I am trying to do. We are doing system integration for two software system to exchange messages. Our industry standards requires the use of emails for message exchange, so that a

tls/ssl or starttls, why different port#?

2010-12-08 Thread Zhou, Yan
Hi there, Even after reading documentation, I am unclear on these two options: tls/ssl or starttls. And what does it mean as to port# that client should use to connect to? The confusion comes when I set up a mail client (e.g., Thunderbird). I see these two options for both incoming and outgoing

RE: tls/ssl or starttls, why different port#?

2010-12-08 Thread Zhou, Yan
gt; > On Wed, Dec 08, 2010 at 11:03:10AM -0500, Zhou, Yan wrote: > > > Why is that? Which one should I use: starttls or tls/ssl for secure > > connections? > > There are two ways to secure a protocol with SSL/TLS. > > - Encapsulate the entire protocol in

why does Postfix attempt relay?

2010-12-13 Thread Zhou, Yan
Hi there, I am integrating Postfix 2.3.3 with LDAP. Everything works fine in development and QA environments, but when the app. moves into our stage environment, it fails. I do not understand why, but I do know our Stage environment has tighter control, e.g., no mail relay, etc. I am sending a m

implement MDN for incoming messages

2010-12-17 Thread Zhou, Yan
Hi there, I am using a script to process each incoming message into Postfix. In master.cf, I have something like this. The python script calls another Java program do the heavy-lifting message processing. connector unix - n n - - pipe flags= user=hubdire

not to split message across multiple domain?

2011-01-10 Thread Zhou, Yan
Hi there, I am using local transport to process messages from Postfix. When message arrives, Postfix will call a script, passing in the message, which we will process. If user sends a message with multiple recipients (in two different domains) to Postfix, I noticed that Postfix will create two

postfix bounce message and not to queue them either

2011-01-12 Thread Zhou, Yan
Hi There, With Postfix set up by default, it will send a bounce message to sender if it cannot deliver the message. But I can create SPAM message with some innocent sender address and send to Postfix. Then, the innocent sender will get undelivered email from Postfix. How would I disable bounce

why is messaging relaying happening

2011-01-13 Thread Zhou, Yan
Hi there, I am connecting to Postfix, send it message with TO address in a remote domain, served by another mail server. I do not understand why such "relay" is happening, I thought my Postfix would only accept messages destined to local domains. Here is output of "postconf -n". I did not define a

acquire Postfix statistics

2011-04-12 Thread Zhou, Yan
Hi There, How do you gather statistics for messages delivered and processed via Postfix (both inbound and outbound)? For instance, to show on a daily basis, how many messages we have received from each domain, how many messages we have delivered to each domain, etc. I have seen some options rely

postfix bounce message configuration

2011-06-15 Thread Zhou, Yan
Hi there, Sorry for the trivial question, I am a little confused what is a bounce message and how not to get these internal Postfix messages. From my server hub-dev-app01.dev.medplus.com, I send a message to hub-int-app01.dev.medplus.com. (They both running Postfix 2.3.x). Because my recipie

RE: postfix bounce message configuration

2011-06-15 Thread Zhou, Yan
Jeroen, Thanks, the way I see it is that the remote SMTP server rejects the message, so my local SMTP server is generating this bounce message to notify the sender. So, if I am sending a message that has invalid recipient address or the message exceeds limit, there is no way not getting these ma

RE: postfix bounce message configuration

2011-06-15 Thread Zhou, Yan
I had postfix main.cf set like this. bounce_notice_recipient = But seeing following error. The default value is "postmaster", so this only disables bounce sent to "postmaster", not to the original sender, right? What am I missing? Jun 15 21:01:47 dir-dev-app01 postfix/bounce[28942]: fatal: b

how to lookup user via LDAP in Postfix

2011-06-22 Thread Zhou, Yan
Hi there, (This is indeed a postfix question). I am using Postfix and DoveCot together, and my /etc/postfix/master.cf looks like this: (using DoveCot LDA to deliver to user mailboxes) dovecot unix - n n - - pipe flags=Rhu user=hubdirect argv=/usr/libexec/dov

setting for one single message with multiple domains

2011-07-21 Thread Zhou, Yan
Hi there, I thought this is a Postfix setting. Postfix 2.3.3. Say, my postfix server manages domain1 and domain2. If I send a message to X@domain1 and Y@domain2. Right now I get two separate messages (both identical), how can I get just one single message for ALL domains? Thanks Yan Co

RE: setting for one single message with multiple domains

2011-07-21 Thread Zhou, Yan
s > > On Thu, Jul 21, 2011 at 03:03:53PM -0400, Zhou, Yan wrote: > > > Hi there, > > > > I thought this is a Postfix setting. Postfix 2.3.3. > > > > Say, my postfix server manages domain1 and domain2. If I send a > message > > to X@dom

postfix error on trivial-rewrite

2011-07-22 Thread Zhou, Yan
Hi there, I am seeing my Postfix 2.3.3 having following error. It may appears to be problem connecting to LDAP (which uses TLS extension), but I tried running postmap and the output shows that it is successfully lookup domain from LDAP. There are other Postfix servers successfully connecting to