postfix

Postfix API/Lookup tables for sent messages information

Currently it seems common practice to parse Postfix log files in order to determine if a message has been sent. Is there an API for Postfix or a look up table in it that yields this information in a manner quicker than parsing (rather lengthy) log files? ...

infix to postfix converter

Hi. I have been working on this infix to postfix/polis notation converter. Although, I do not feel the solution is adequate. Specifically the j (EDIT: Now called index) variable is bugging me. Do you guys have any suggestions? Or perhaps there is a much better way to accomplish it? Or do I just worry too much? public static string[] I...

Postfix email stream parsing

Hello, I am using Postfix smtp server for receiving mails. My requirement is to take the mail objects from Postfix and parse the mail objects so that the individual mail objects can be used in my java code as soon as a mail is received by Postfix. One of the solutions that i have come up is to have a content filter communicating wit...

Why is this Java operator precedence being ignored here?

The following code prints out "3", not "4" as you might expect. public class Foo2 { public static void main(String[] args) { int a=1, b=2; a = b + a++; System.out.println(a); } } I understand how. The postfix increment happens after the value of "a" has been loaded. (See below). What I ...

i would like to add a bcc to all mails going out from my postfix

i have a forum which sends out many automatic mails. i would like to gather the mails to have an overview. how can i add a bcc to all outgoing mails excluding some mail-subjects or early hours when especially many mails are sent? ...

users get the automatic confirmation mail from my forum with 1-2 hours delay

is this a spamfilter or postfix problem? ...

[email protected] How to do this?

I'm wondering how I could map an email adress so newsletter users could simply write to a uniquely create email address and instantly get unsubscribed. ex: [email protected] And the key here is that I want it to be instantaneous, I don't want to poll a imap or pop3 account every X seconds. Is there a way to...

how to change file permissions in postfix ?

Hi, In the postfix main.cf I have configured service to invoke external php script. smtp inet n - - - - smtpd -o content_filter=myservice:www-data myservice unix - n n - 1 pipe flags=Rq user=me null_sender= argv=/home/me/my_script.php so far so good, my_script.php...

email sender authentication with Postfix

Hello, I have setup PostFix for receiving emails only. I want to authenticate the received emails against their sender email addresses by using SPF or DKIM. Is there a good java plugin available for this? or do i need to write my own in java (other preferences C, C ++) ,please reply with relevant references. Thanks in advance Ashish...

Help optimize my RPN evaluation function

Guys, My parser evaluates PEMDAS expressions by first converting from infix to postfix then uses the standard postfix evaluation rules. I parse the expression and store the tokens in a list. This precompilation is ok for me since I plan on caching the precompiled functions. I am trying to optimize the evaluate function (See Evaluate0...

postfix behind a proxy

Hello, I have setup a Postfix mail server. This server is behind a network proxy. whenever I send mail to external mail servers like [email protected] I get 'connection refused' message in my postfix mail logs. But I receive the mail sent via postfix mail account to my email account that is on my company's corporate mail server (i.e insid...

how Postfix anti spam configuration works with DNS-based Blackhole List providers

Hello, I have setup a Postfix mail server for incoming mails that is required to never reply to external enviornment i.e it will accept all incoming mails and never reply anything that can be used as a trace to locate and verify it's existence. I have implemented the Postfix anti-UCE configuration by using the following settings in po...

Adding mail header if postfix DNS based RBL (realtime black hole) check fails

Hello, I have setup a receiving Postfix mail server. Here i have custom code written that parses the whole mail received by postfix and use the headers, body and attachments separately for different uses. I have currently added SPF and DKIM checks in postfix that result in appending of their results in the mail header to indicate about...

Postfix anti spoofing filters

Hello, I have applied the following filters (milters) in my Postfix incoming mail server: DKIM milter SenderID milter SPF policy. All three append headers in the received e-mail regarding their checks. I want to know how much protection do these provide me against spoofing and do i need something more? Thanks in advance. Ashish ...

Adding headers in postfix incoming mails

Hello, I am unable to see the following headers in e-mails received on my Postfix e-mail receiving server: Return-Path Received: from Similar to header on gmail Received: from dev16 ([123.123.123.123]) by mx.google.com with SMTP id xxxxxxxxxxxxxxxx; Tue, 27 Oct 2009 05:52:56 -0700 (PDT) Return-To: Please suggest me what sh...

How to use sendmail-jilter for Postfix email header parsing?

Hello, I want to filter e-mail headers received on my Postfix mail receiving server. I looked on the java implementation of milter protocol and found sendmail-jilter This API claims to be java implementation for milter protocol. The problem is I am novice in milter and don't know how to use this API, any code sample and example in ja...

What is the proper way to send an email *directly* using the SMTP protocol? (bypass MTA on my end)

I need to send emails DIRECLTY to the recipient's mail-server, bypassing any MTA's on my end. I know there are some great reasons to use MTAs like sendmail, etc, so I don't need advice in that direction. I would like to write code that directly connects to the recipient's mailservers. So, am I missing anything here? Suppose the desti...

Is there a way to see a log of email messages sent with postfix?

Is it possible to have postfix log the actual contents of an email (Subject, Body) it sends? I checked in /var/logs/mail.info and mail.log but looks like that's just some basic stuff, like headers. ...

postfix relay failover

Is there a way to configure postfix to use a relay only if direct delivery is rejected? The case being a web application that has to send notification to subscribers, but some servers reject the connection. I want those cases to be retried using a paid SMTP relay like authsmtp.com. However I don't want to use the relay for everything sin...

Postfix message received hook

I am writing an web-application which needs to receive e-mail messages to users' internal email addresses, let administrators approve them, and then forward to corresponding user's external mailbox. I have installed and configured postfix for message receiving task. It uses virtual e-mail addresses, and my existing database where user e...