Postfix doubling up as SMTP load balancer

2014-02-07 Thread Sharma, Ashish
Hi, I have an email receiving setup with one Postfix instance mapped to one instance of Amavisd-new (spamassassin, ClamAV), Now to prepare for increasing traffic, I am looking on to scale out strategies of my setup. So with that in mind, is it possible that one instance of Postfix can itself

RE: Postfix Content Filter

2013-06-20 Thread Sharma, Ashish
Prasad, After going through the mail thread, following are my advices for you: 1. sendmail-jilter (http://sendmail-jilter.sourceforge.net/) works on mail filter protocol, since Postfix also supports mail filter protocol, so it works with Postfix. Use following settings in your postfix

Sender-ID plugin (sid-milter) giving 'PermError' for mails from 'outlook.com'

2013-06-17 Thread Sharma, Ashish
Hi, I have a mail receiving server setup , I use Postfix as my mail receiving server and use the 'sid-milter' (http://sourceforge.net/projects/sid-milter/) as provided by postfix add-on Software(http://www.postfix.org/addon.html) page to verify incoming mail's sender-ID and SPF. Here I am

RE: C/C++ based Content filter API

2012-11-22 Thread Sharma, Ashish
: Wednesday, November 21, 2012 7:50 PM To: Sharma, Ashish Subject: Re: C/C++ based Content filter API Personally I would use the Postfix always_bcc ( http://www.postfix.org/postconf.5.html#always_bcc ) and then process the mailbox using traditional Unix tools such as procmail, formail, etc. Without

RE: C/C++ based Content filter API

2012-11-22 Thread Sharma, Ashish
Content filter API On Nov 21, 2012, at 15:10, Sharma, Ashish wrote: Any comments on the following posted queries. I suggest you read the documentation available, such as; http://www.postfix.org/documentation.html http://www.postfix.org/CONTENT_INSPECTION_README.html http://www.postfix.org

RE: C/C++ based Content filter API

2012-11-21 Thread Sharma, Ashish
Hi, Any comments on the following posted queries. Thanks in advance Ashish -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Sharma, Ashish Sent: Monday, November 19, 2012 8:35 PM To: postfix-users@postfix.org Subject: C/C

C/C++ based Content filter API

2012-11-19 Thread Sharma, Ashish
Hi, I am implementing a customized enterprise solution where I need to receive an email , pull out the contents from the email and initiate some enterprise operations based on the received content of the email. I am using Postfix as mail receiving server and, for mail parsing I am planning to

How to create separate mail filter and smtp communication for each recipient?

2011-12-05 Thread Sharma, Ashish
Hi, I have a mail receiving postfix server with my custom email filter and a custom content filter. The entire system was made for the case of receiving emails meant for single recipients only on the same mail domain, mails directed for multiple recipients for the receiving email domain were

RE: Sender-ID validation via Blackberry failing

2011-05-10 Thread Sharma, Ashish
-Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Tuesday, January 25, 2011 8:11 PM To: Postfix users Subject: Re: Sender-ID validation via Blackberry failing Sharma, Ashish: Hi, I have a Postfix mail

RE: Sender-ID validation via Blackberry failing

2011-05-10 Thread Sharma, Ashish
14:23, Sharma, Ashish wrote: Hi, I have a Postfix mail receiving server, on this I am using sid-milter (found at http://sourceforge.net/projects/sid-milter/ got from http://www.postfix.org/addon.html) tool to validate senderID and SPF. Here the problem is for mail servers that implement

Sender-ID validation via Blackberry failing

2011-01-25 Thread Sharma, Ashish
Hi, I have a Postfix mail receiving server, on this I am using sid-milter (found at http://sourceforge.net/projects/sid-milter/ got from http://www.postfix.org/addon.html) tool to validate senderID and SPF. Here the problem is for mail servers that implement Sender-ID, mail servers that are

Correction in Postconf output: Persistent mails being received

2010-10-30 Thread Sharma, Ashish
-postfix-us...@postfix.org] On Behalf Of Sharma, Ashish Sent: Wednesday, October 27, 2010 2:52 PM To: postfix users Subject: Persistent mails being received Hi, I have a postfix mail server configured as mail receiving server. The problem that I am facing is that I am receiving same email every 15

RE: Correction in Postconf output: Persistent mails being received

2010-10-30 Thread Sharma, Ashish
- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Saturday, October 30, 2010 5:54 PM To: Postfix users Subject: Re: Correction in Postconf output: Persistent mails being received Sharma, Ashish: The problem that I am facing

Persistent mails being received

2010-10-27 Thread Sharma, Ashish
Hi, I have a postfix mail server configured as mail receiving server. The problem that I am facing is that I am receiving same email every 15 second from same sender 'pete...@warwick.net' with same message-ID on my production mail servers, following are my postfix logs: Oct 25 01:11:02

Correction: Persistent mails being received

2010-10-27 Thread Sharma, Ashish
There's a correction in my Postfix 'main.cf' settings in the mail below. -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Sharma, Ashish Sent: Wednesday, October 27, 2010 2:52 PM To: postfix users Subject: Persistent mails

RE: Correction: Persistent mails being received

2010-10-27 Thread Sharma, Ashish
...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Sharma, Ashish Sent: Wednesday, October 27, 2010 4:50 PM To: postfix users Subject: Correction: Persistent mails being received There's a correction in my Postfix 'main.cf' settings in the mail below. -Original Message- From

Persistent mails being received

2010-10-27 Thread Sharma, Ashish
...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Noel Jones Sent: Wednesday, October 27, 2010 5:01 PM To: postfix-users@postfix.org Subject: Re: Correction: Persistent mails being received On 10/27/2010 6:19 AM, Sharma, Ashish wrote: There's a correction in my Postfix 'main.cf' settings

Mails received with same message id every 15 - 20 seconds

2010-10-26 Thread Sharma, Ashish
Hi, I have SpamAssassin integrated on my postfix mail server via 'Amavisd-new'. The problem that I am facing is that I am receiving same email every 15 second from same sender with same message-ID on my production mail servers, following are my postfix logs: Oct 25 01:11:02 g2t0433g

Character corruption for Chinese (simple and traditional) and Korean texts

2010-10-05 Thread Sharma, Ashish
Hi, I have a setup, where emails received by mail server(postfix) are taken on and the resulting email's body(html or plain text) and attachments are parsed to separate files and saved, for this I use javax mail api. The problem occurs for email body when it is in Chinese (simple and

Unable to put recepient access

2010-09-07 Thread Sharma, Ashish
Hi, I have a mail receiving postfix deployed. On this I am trying to block emails that are to sent to 'donotre...@mydomain.com' For this I am doing the following: smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/blockList, reject_unauth_destination,

Unable to drop mails

2010-09-07 Thread Sharma, Ashish
Hi, I have a mail receiving postfix deployed. On this I am trying to block emails that are to sent to 'donotre...@mydomain.com' For this I am doing the following: smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/blockList, reject_unauth_destination,

Email delivery fails on postfix on heavy load

2010-08-11 Thread Sharma, Ashish
Hi, I have a postfix(postfix 2.6.5) mail receiving server. On this I have used an email filter (sendmail-jilter http://sendmail-jilter.sourceforge.net/) that have some of my custom code. Following setting is used for the milter in 'main.cf': #Milter support for smtpd mail smtpd_milters =

Duplicate emails received

2010-06-08 Thread Sharma, Ashish
Hello, I have set up a postfix(2.6.6) mail receiving server (customized with three milters (dkim,sid, custom java milter) and two content filters (amavisd, custom java based)). Is it possible that if someone sends a mail for my postfix and it gets received in a manner that duplicate mails get

postfix connection issues with milters

2010-05-28 Thread Sharma, Ashish
Hi, I have deployed postfix as an incoming mail receiving server. On this I have a custom mail filter (based on jilter api): My 'main.cf' file for milter settings is as follows: #Milter support for smtpd mail smtpd_milters = inet:localhost:10026, # dkim milter inet:localhost:10027, # sid

Mail filters not running behind a controlled enviornment

2010-05-24 Thread Sharma, Ashish
Hi, I have deployed a postfix server for email receiving. On this I have configured DKIM and SenderID + SPF milters, by referring to http://www.postfix.org/MILTER_README.html Following are my settings in main.cf file: #Milter support for smtpd mail smtpd_milters = inet:localhost:10026,

RE: Mail filters not running behind a controlled enviornment

2010-05-24 Thread Sharma, Ashish
Of Noel Jones Sent: Monday, May 24, 2010 10:42 PM To: postfix-users@postfix.org Subject: Re: Mail filters not running behind a controlled enviornment On 5/24/2010 11:31 AM, Sharma, Ashish wrote: Hi, I have deployed a postfix server for email receiving. On this I have configured DKIM

mail rejected by/because of DKIM

2010-05-12 Thread Sharma, Ashish
Hi, I have setup a postfix mail receiving server and deployed DKIM and SID+SPF milter by referring (http://www.postfix.org/MILTER_README.html). Now things are working fine but at times some of the mails that are received on my postfix are rejected with error code 550 and they receive a message

Email persisted in deferred queue

2010-04-28 Thread Sharma, Ashish
Hi, I tried to configure amavisd-new(as content filter) with my postfix. But it was failing so I reverted my changes from postfix main.cf But now I can see 19 deferred mails and they are retried again and again and again put in to deferred queue. Step where delivery fails is at amavisd end.

email Status in mail queue

2010-04-21 Thread Sharma, Ashish
Hi, I just want to confirm my two observations that I read from Postfix documentation: 1. In before queue mail filter (milter) the email is not put in postfix queue until it's passed by milters successfully, only after email gets passed through milters then only email is received fully from

Email attachment parsing via mime4j

2010-04-21 Thread Sharma, Ashish
Hi, I am using a small java smtp library (http://code.google.com/p/subethasmtp/), by this I need to parse the incoming emails in separate components viz body, attachments etc. I am trying to use mime4j , but the documentation suggests that mime4j can only give event notification or token

RE: Email attachment parsing via mime4j

2010-04-21 Thread Sharma, Ashish
in advance Ashish Sharma -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Wednesday, April 21, 2010 8:17 PM To: Postfix users Subject: Re: Email attachment parsing via mime4j Sharma, Ashish: Hi, I am

RE: Email attachment parsing via mime4j

2010-04-21 Thread Sharma, Ashish
21, 2010 9:03 PM To: Sharma, Ashish Cc: Postfix users Subject: Re: Email attachment parsing via mime4j Sharma, Ashish: But since there are lots of cases that I need to cater to that's why I am looking for a MIME processor that does this all catering to all of the possible cases (like text/html

RE: amavis Delivery status notification(DSN) failing

2010-04-12 Thread Sharma, Ashish
...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of lst_ho...@kwsoft.de Sent: Friday, April 09, 2010 7:37 PM To: postfix-users@postfix.org Subject: RE: amavis Delivery status notification(DSN) failing Zitat von Sharma, Ashish ashish.shar...@hp.com: Wietse, Thanks for your

RE: amavis Delivery status notification(DSN) failing

2010-04-09 Thread Sharma, Ashish
-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Thursday, April 08, 2010 9:37 PM To: Postfix users Subject: Re: amavis Delivery status notification(DSN) failing Sharma, Ashish: Apr 7 11:36:54 ip-10-194-99-63 postfix/lmtp[3594]: BABCC100191: to=ida6786ombo...@dev1.cpgtest.ostinet.net

RE: amavis Delivery status notification(DSN) failing

2010-04-09 Thread Sharma, Ashish
Mark, Following is the telnet log with my custom content filter: $ telnet 10.194.99.63 10030 Trying 10.194.99.63... Connected to ip-10-194-99-63.ec2.internal (10.194.99.63). Escape character is '^]'. 220 Hello HELO 250 Custom Java SMTP Server MAIL FROM:ashiiish.sha...@gmail.com 250 Ok RCPT TO:

RE: amavis Delivery status notification(DSN) failing

2010-04-09 Thread Sharma, Ashish
: Friday, April 09, 2010 4:23 PM To: Postfix users Subject: Re: amavis Delivery status notification(DSN) failing Sharma, Ashish: Wietse, Following is the requested result: $telnet 10.194.99.63 10030 Trying 10.194.99.63... Connected to ip-10-194-99-63.ec2.internal (10.194.99.63). Escape

RE: amavis Delivery status notification(DSN) failing

2010-04-09 Thread Sharma, Ashish
...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Friday, April 09, 2010 6:18 PM To: Postfix users Subject: Re: amavis Delivery status notification(DSN) failing Sharma, Ashish: Wietse, Executed the command you sent, getting the following error message: fatal

RE: amavis Delivery status notification(DSN) failing

2010-04-09 Thread Sharma, Ashish
Mark, Accepted your point, but I am actually doing what you have suggested already. Maybe the proof lies in the fact that my custom content filter is working fine when amavisd is not used and postfix is directly communicating with my component. I am not receiving such problem in that case. Is

amavis Delivery status notification(DSN) failing

2010-04-08 Thread Sharma, Ashish
Hi, I have a postfix mail server over which I have deployed a custom content filter written in java. Now I introduced amavisd (containing clamav and spamassassin) as content filter such that the mail is passing in following manner: ===mail from outside === Postfix amavisd === custom

RE: Bypassing content filter or mail filter if one of them crashes out

2010-04-07 Thread Sharma, Ashish
12:22 AM To: postfix-users@postfix.org Subject: Re: Bypassing content filter or mail filter if one of them crashes out On 3/30/2010 9:41 AM, Sharma, Ashish wrote: Hello, I am running my postfix with 3 mail filters and 2 content filters (actually one of the content filter (amavisd) is piping

Bypassing content filter or mail filter if one of them crashes out

2010-03-30 Thread Sharma, Ashish
Hello, I am running my postfix with 3 mail filters and 2 content filters (actually one of the content filter (amavisd) is piping it's output to the other). My question here is how can I make sure to make my setup robust in the sense that if one of the mail filter or content filter crashes

Failover control of Postfix content-filter

2009-12-14 Thread Sharma, Ashish
Hi, I have a custom postfix content filter that listens to incoming mail messages via amavis(scanning mails for virus(clamAV) and spam(spamassassin) ), set up between postfix and my content filter. I want to put failover control for my custom content filter, Is it possible to do it via

Filtering e-mail headers : To,Cc and Bcc

2009-12-08 Thread Sharma, Ashish
Hi, I have a Postfix mail-receiving server. I have to filter the received e-mail according to the logic: 1. Only mails sent to the recipient registered on my email server would be accepted. 2. Mails sent to the recipient registered on my e-mail server would be rejected if any

multiple content filter settings

2009-11-27 Thread Sharma, Ashish
Hello, I have a Postfix mail server that needs to be set for two content filters as I have two content filters. One from AmaVis and another a custom content filter. Please suggest some idea for configuring both on same Postfix. Is it possible too? Thanks in advance. Ashish Sharma

RE: multiple content filter settings

2009-11-27 Thread Sharma, Ashish
Peter, I don't know how to do it, please post some sample for doing what you are suggesting. Ashish -Original Message- From: petermbl...@gmail.com [mailto:petermbl...@gmail.com] On Behalf Of Peter Blair Sent: Friday, November 27, 2009 11:23 PM To: Sharma, Ashish Cc: postfix users list

RE: Milter's not working on Postfix 2.6.5

2009-11-24 Thread Sharma, Ashish
Of Sharma, Ashish Sent: Tuesday, November 24, 2009 12:36 PM To: postfix users list Subject: Milter's not working on Postfix 2.6.5 Hello, I have installed a Postfix (version 2.6.5 ) mail receiving server. I use the DKIM and SenderID+SPF milter referred from here: http://www.postfix.org

Milter's not working on Postfix 2.6.5

2009-11-23 Thread Sharma, Ashish
Hello, I have installed a Postfix (version 2.6.5 ) mail receiving server. I use the DKIM and SenderID+SPF milter referred from here: http://www.postfix.org/MILTER_README.html My 'main.cf' settings for above mentioned milters is as: #Milter support for smtpd mail smtpd_milters =

RE: Adding spam attack IP's to DNSRBL providers

2009-11-16 Thread Sharma, Ashish
PM To: postfix-users@postfix.org Subject: Adding spam attack IP's to DNSRBL providers Sharma, Ashish put forth on 11/3/2009 3:58 AM: Hello, I have a Postfix e-mail receiving server setup. I have applied the following setting in my Postfix main.cf file: smtpd_recipient_restrictions

RE: need help with pcre for postfix

2009-11-06 Thread Sharma, Ashish
Pascal, You can create a mail filter for Postfix using Milter API. For c implementation you can use lib-milter API and for Java implementation you can use 'Jilter' API. It's possible to write code depending on your requirement as mentioned by you: can someone help me write a filter who would

Adding spam attack IP's to DNSRBL providers

2009-11-03 Thread Sharma, Ashish
Hello, I have a Postfix e-mail receiving server setup. I have applied the following setting in my Postfix main.cf file: smtpd_recipient_restrictions = reject_unauth_destination, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net permit for checking the mails with

Adding headers in Postfix mails

2009-10-28 Thread Sharma, Ashish
Hello, I am unable to see the following headers in e-mails received on my Postfix e-mail receiving server: 1. Return-Path 2. Received: from Similar to header on gmail Received: from dev16 ([123.123.123.123]) by mx.google.com with SMTP id ; Tue,

RE: Adding headers in Postfix mails

2009-10-28 Thread Sharma, Ashish
PM To: postfix-users@postfix.org Subject: Re: Adding headers in Postfix mails On Wed, 28 Oct 2009 08:43:34 + Sharma, Ashish ashish.shar...@hp.com wrote: Hello, I am unable to see the following headers in e-mails received on my Postfix e-mail receiving server: 1. Return-Path

parsing email headers using milter protocol

2009-10-28 Thread Sharma, Ashish
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-jilterhttp://sendmail-jilter.sourceforge.net/ [http://sendmail-jilter.sourceforge.net/] This API claims to be java implementation for

About Postfix anti spoofing filters

2009-10-26 Thread Sharma, Ashish
Hello, I have applied the following filters (milters) in my Postfix incoming mail server: 1. DKIM milter 2. SenderID milter 3. 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

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

2009-10-22 Thread Sharma, Ashish
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

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

2009-10-22 Thread Sharma, Ashish
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

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

2009-10-22 Thread Sharma, Ashish
] On Behalf Of Sahil Tandon Sent: Thursday, October 22, 2009 6:31 PM To: postfix users list Subject: Re: Adding mail header if postfix DNS based RBL (realtime black hole) check fails On Oct 22, 2009, at 8:52 AM, Sharma, Ashish ashish.shar...@hp.com wrote: Hello, I have setup a receiving Postfix