Server :: Email Content Filter Rules For Either Postfix

Feb 3, 2010

I want a mail server that can work just like MDaemon. The reason is, I want to have an email content filter rule that does some thing like this.

1. If the To Header contains "support@thisdomain" then run a program.
What this means is that, there is a program here in the office, and if some one sends an email to the support address, with an attachment of .exe and that person is a customer, then the program should be run. The only thing I need here is if there is a rule or script that can filter email header and run a program.

2. If the Exit Code from a previous 'Run program' rule is in the range of 1 to 100 and if the To Header contains "support@thisdomain" then send note1 "to<email address>" from <$SENDER$" "SUBJECT <AM ...>
and delete this message.

3. If the EXIT CODE from a previous 'Run program' rule is =0 and if the TO HEADER contains "support@thisdomain" then send note1 "to<email address>" from <$SENDER$" "SUBJECT <AM ...>
and delete this message.

View 7 Replies


ADVERTISEMENT

Security :: Content Filter For Web / Email And Instant Messaging

Apr 12, 2010

I have been assigned a task to implement a free open source content filter having feature of web, email, instant messaging etc. If any one has the information or worked on this type of product please share it.

View 8 Replies View Related

Server :: Perl Program To Filter Emails For Specific Rules

Feb 4, 2010

Please what will it take me to write a perl full functioning program to filter emails for specific rules? Will that be possible? The actual thing am trying to get is to write a perl program and attach to a mail server so that, when the mails come in, the perl script get call and then the perl program will let another external program that is not on the server run and check or filter the mails.

View 8 Replies View Related

Server :: Postfix Filter Outgoing Mail By Sender Domain ?

Jun 17, 2010

Im trying to get postfix to filter my outgoing mail and basically drop everything that is not in my hash table.

So far I managed to get this going

Code:

Code:

Unfortunately those rules also apply to incoming messages. My goal is to disallow users on my host to change their "MAIL FROM" to anything they like and restrict them to domains I specify. I'm aware that the local part still is variable and a user of domain "foo.com" could use a email of domain "bar.com", but still some of my troubles would be solved if I get this running.

View 2 Replies View Related

Ubuntu Servers :: Filter Out Emails On Postfix Server By GeoIP Data?

Dec 2, 2010

I've been looking for a way to filter out emails on my postfix server by GeoIP data. I couldn't find anything that fitted the bill so wrote my own in Python as a postfix policy. Thought I'd post it here to see if it's of any use to anyone else. I've attached a tar of the files as the Python formatting will get mucked up by the forum code. Comments/improvements are welcome (be kind ) First file is : policyd-geoip which is owned by root:root and placed in /usr/bin with 755 perms

[Code]...

View 3 Replies View Related

Server :: Read Content Of Emails In Postfix?

Mar 2, 2010

Is there any way can read content of email in queue? Or emails sent in few last seconds?

View 1 Replies View Related

Ubuntu Security :: Add Smtp Authentication To Postfix Installation Used As Spam Filter For Exhange Server

Feb 26, 2010

I followed this How To (https://help.ubuntu.com/community/Postfix) in order to add smtp authentication to my Postfix installation used as spam filter for my exhange server, and it'seem all ok; the only thing that I don't understand is where I list all the users (with passwords) that I authorize to send mail through my server...

View 3 Replies View Related

Server :: Potfix Email Filter Based On Sender And Recipient To Forward Messages?

Nov 2, 2010

We have MS Exchange email server with postfix/amavis on FreeBSD as proxy for anti-spam and anti-virus. We use our own developed CRM and trying to implement such functionality that when CRM manager send email to CRM client or vice versa through email client like Outlook (no plugins for CRM) this message would be shown in CRM. There is already a solution to parse emails from specific emailbox and show it in CRM.

What I need is to create postfix email filter to check if sender email is in file CRM_managers_emails and recipient email is in file CRM_clients_emails then forward that email to [URL] Filter should check both incoming and outgoing messages. I will auto generate CRM_managers_emails and CRM_clients_email files containing all such emails taken from CRM database. I know i should use something like Postfix After-Queue Content Filter but most of examples are for blocking emails.

View 3 Replies View Related

General :: Email Output Of Cron Command, Sends Email But No Content?

May 28, 2010

Using CentOS. I have a cron setup to run this command: Code: /var/test.sh | mail -s "Test Cron" mr182@somewhere.com The email is sent but the output of the script is not in the email body, it's just blank. I know there is some output because there are some echo statements in the script.I don't want to get an email for all cronjobs, just this one.

View 1 Replies View Related

OpenSUSE :: Thunderbird Filter Rules Disappear

Aug 23, 2010

I'm running Thunderbird 3.0.6 on openSUSE 11.2 (x86_64). When I add a message filter rule, it disappears upon restart. This behavior is reproducible at all times. I suspected a write permission issue, but I checked permissions for the file msgFilterRules.dat and it is rwx for the owner.

View 4 Replies View Related

Programming :: Out-putting Email Content Of Last Email Received?

Jan 25, 2011

I would like with bash to output the content of my very last email that has been received (I use gmail), especially using fetchmail or mutt.

View 1 Replies View Related

CentOS 5 Server :: Configure Postfix On 5 To Relay Email From The Internet To The Exchange Server

Apr 24, 2011

i need to configure postfix on centos to relay email from the internet to the Exchange Server and i also need that emails sent from the exchange within the same domain be sent to postfix then resent to exchange because i have spamassassin and clamav installed on centos to filter all incoming and outgoing mails ...

View 1 Replies View Related

Software :: How To Make Web Content Filter

Aug 25, 2009

I want to write a program to filter web content. I believe that i can write a filter program by usig java however problem is that how can i place this program like "internet -> filter -> web browser" ?

View 4 Replies View Related

Server :: Postfix Relaying Email To Multiple Mailbox Server?

Apr 4, 2010

i have setup mailrelay using postfix and relay email to exchange server. The problem is how can i relay email to multiple exchange server. For example: -

domain aa.bb.com relay to exchange server 10.10.10.10
domain 123.test.com relay to exchange server 192.168.10.5

View 5 Replies View Related

Server :: Postfix Not Receiving Email From Outside World

May 7, 2010

i can't receive outside emails on a postfix server. i was able to get it to send emails with help in this thread. i can telnet into it via localhost, but not via domain name.

View 8 Replies View Related

Server :: Postfix Sasl - Can't Email To Clients

May 13, 2010

I have an issue where postfix is setup to use dovecot auth and as far as I know it works, if i login using telnet to the mail server i can authorize myself y providing the base64 encoded user & password. so if i can login, why cant my email clients. have tried thunderbird and evolution. this is the mail.log relavant entries for sucessful login via telnet

[Code]...

Login by pop or imap works flawlessly that what i dont get. From what i see it SHOULD be working. It it changes things, im using postfixadmin, postfix, dovecot. passwords and info stored in mysql tables. passwords are md5 encrypted. I thought that may be the issue, but that dosnt make sence.

View 6 Replies View Related

CentOS 5 :: Postfix Not Sending Email To Right Server?

Jul 23, 2009

I have postfix sort of working correctly. postfix can send email to the internet but it doesn't want to send email to my local exchange server. What I need is for postfix to send emails directed to @xyz.com to my exchange server instead of itself.

My setup
mail.xyz.com - exchange 2003 server
www.xyz.com - centos 5.3 server with postfix

www.xyz.com can send emails to my hotmail.com account so that part works correctly. www.xyz.com can't send email to username@xyz.com. postfix seems to be delivering the email to itself and not the exchange server.

How can I tell postfix to send the @xyz.com emails to my exchange server?

Here is a sample of my /var/log/maillog
Jul 22 15:43:43 list postfix/smtpd[9802]: D63168604A3: client=localhost.localdomain[127.0.0.1]
Jul 22 15:43:53 list postfix/cleanup[9805]: D63168604A3: message-id=<20090722204343.D63168604A3@www.xyz.com>

[Code].....

View 3 Replies View Related

CentOS 5 Server :: How To Send Email Outside LAN Using Postfix

Jun 2, 2011

How can I send email outside my LAN using postfix? Actually, I can received email from outside like yahoo. hotmail etc.. But when I am trying to send outside in my mail server here is the error I got..

Jun 2 21:19:51 microtontech postfix/smtp[4434]: connect to k.mx.mail.yahoo.com[98.139.54.60]: Connection timed out (port 25)
Jun 2 21:20:10 microtontech postfix/smtp[4435]: connect to

[code]....

I try to telnet yahoo.com and smtp.pldtdsl.net 25 here are the result, but when I try to telnet smtp.pldtdsl.net its showing trying only.. I checked if my ISP is blocking port 25 isn't. (I forgot what is the website I used to check if my ISP port 25 is block) I try already to used in my relayhost the [URL] but the email I sent still bouncing..But I remember last time when I was installed Hmailserver in my Win2K3 machine I sent email outside but I cannot received..

[code]....

View 3 Replies View Related

Server :: Configure Postfix To Send Emails From One Email

Feb 8, 2011

I'm experimenting with with mail-servers now and I'm trying to configure postfix to send emails from one email(pop3 is gmail) to any email outside the local network. Server is Ubuntu 10.10 with the last updates.

View 1 Replies View Related

Server :: Postfix 2.6.5 Rejecting Email To All Recipients If One Recipient Is Bad?

Oct 6, 2010

I have an ubuntu server running postfix 2.6.5 (configured using DTC). If a user tries to send an email to more than one recipient, and one recipient address is bad, then the server returns an error and no mail is sent (even to the good addresses), rather than letting the good ones through. Error displayed by thunderbird is

Code:

"An error occurred while sending mail. The mail server responded: 5.1.1 [URL]: Recipient address rejected: User unknown in virtual mailbox table. Please check the message recipient noreply@domain.com.au and try again." and mail.log shows ...

Code:

Oct 6 20:35:08 www1 postfix/smtpd[22716]: connect from xxxxxx [xxx.xxx.xxx.xxx]
Oct 6 20:35:08 www1 postfix/smtpd[22716]: B62F92A44: client=xxxxxx [xxx.xxx.xxx.xxx], sasl_method=PLAIN, sasl_username=blake@domain.com.au

[code].....

View 1 Replies View Related

Server :: Postfix System Outgoing Email Blacklist

Feb 7, 2011

I have a postfix system that sends allot of emails to customers and web site visitors. A lot of visitors just enter an invalid email in the WEB form just to download some files or do other tasks. Is it possible to BLACKLIST specific email addresses so the system does not send to those addresses? I can grep from the postfix mail log all those fake emails and place them somewhere.

View 4 Replies View Related

Server :: Postfix Setup - Make Own Email Addresses

May 14, 2011

It wasn't too long ago that I discovered Linux/Ubuntu (in terms of actually USING it) and I've been completely blown away by the capabilities it puts in the user's hands! To think that someone can take an old desktop from a trash pile (literally, in my case) and turn it into a web server for ZERO dollars is absolutely crazy.

Anyway, I've been using said desktop as a sort of "dummy" machine to learn Linux. I want to be clear that I've got another computer for personal use and that I understand that setting up server software on any computer poses a security risk. Having said that, I have a few questions regarding mail servers and their setup on Ubuntu. Again - I'm comfortable with what I've done so far in Ubuntu (installing packages, terminal interaction, basic usage)

My question is mainly this: if you have, say, a domain name through DynDNS (let's say example123.com) and it points to an Ubuntu system, does something like Postfix enable you to make your own email addresses such as user1@example123.com and have an email server from wherever the Ubuntu system is?

I've been following the basic Postfix setup here and have had success so far (down to the "Adding your local domains to postfix" section) bu wanted to make sure that what I'm intending to do is what I'm doing (haha... i hope that makes sense). That is: get domain name at DynDNS, host pages on LAMPP server, use Postfix to facilitate incoming/outgoing email for that domain name.

View 7 Replies View Related

Ubuntu Security :: Content Filter At Remote Locations?

Aug 6, 2010

We have approximately 100 retail locations that will have split vpn tunneling. Intranet traffic will flow over the vpn to the corporate headquarters, voip traffic will tunnel to a regional hub and internet bound traffic will go over the local isp. The retail locations are small with 1-8 users and no enterprise grade equipment (servers, etc). This setup in effect will render our current content filtering solution useless.

The locations will be equipped with Cisco ASA 5505 Firewalls. The original plan was to use a Websense server and the url filtering feature to act as a content filter. I just found out that pricing for Websense was not included in the budget will be a show stopper.There may also be some performance issues with this method. Putting a proxy server at each location is not really an option. We do not have the resources to place a server at each location, plus the users could simply unplug an inline device or go around it. There is minimal supervision at most of these locations.

Ideally, I would like to find a way to use something like Dansguardian with an ldap interface and the url filtering feature of the ASA firewalls. I found a program called n2h2p, but I can find 0 documentation for it. It is also 2 years old with no updates. I also need to be able totrally manage this as trying to keep up with 100 different configurations for 400 users would be virtually impossible for the amount of time I will have available

View 9 Replies View Related

General :: Filter Find And Du By Content Of Inner File In Subdirectory?

May 30, 2010

I have the following command that I run on cygwin:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | xargs du --max-depth=0 > foldersizesreport.csv

I intended to do the following with this command: for each folder under /d/tmp/ that was modified in last 150 days, check its total size including files within it and report it to file foldersizesreport.csv however that is now not good enough for me, as it turns out inside each

/d/tmp/subfolder1/somefile.properties
/d/tmp/subfolder2/somefile.properties
/d/tmp/subfolder3/somefile.properties
/d/tmp/subfolder4/somefile.properties

so as you see inside each subfolderX there is a file named somefile.properties inside it there is a property SOMEPROPKEY=3808612800100 (among other properties) this is the time in millisecond, i need to change the command so that instead of -mtime -150 it will include in the whole calculation only subfolderX that has a file inside them somefile.properties where the SOMEPROPKEY=3808612800100 is the time in millisecond in future, if the value SOMEPROPKEY=23948948 is in past then dont at all include the folderin the foldersizesreport.csv because its not relevant to me.so the result report should be looking like:

/d/tmp/,subfolder1,<itssizein KB>
/d/tmp/,subfolder2,<itssizein KB>

and if subfolder3 had a SOMEPROPKEY=34243234 (time in ms in past) then it would not be in that csv file.so basically I'm looking for:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | <only subfolders that have in them property in file SOMEPROPKEY=28374874827 - time in ms in future and not in past | xargs du --max-depth=0 > foldersizesreport.csv

View 1 Replies View Related

Ubuntu :: Postfix - Can't Send Email To 1and1 Mail Server

Aug 9, 2010

what do I need to change in postfix/ dns to send email to one one of the email server hosted by 1and1.

I'm using zenoss to monitor system/ network and devices. I wanted to setup email notification , so I installed postfix. All works fine when I use my private account on yahoo or hotmail. but when I specify email account that is hosted by 1and1 I receive error 421. "

xxxxmyserver postfix/smtp[5399]: B0A5B22A06: to=<1and1emailaddress>, relay=mx00.1and1.co.uk[212.227.15.169]:25, delay=0.8, delays=0.04/0.02/0.62/0.12, dsn=4.0.0, status=deferred (host mx00.1and1.co.uk[212.227.15.169] said: 421 invalid sender domain 'xxxxmyserver' (misconfigured dns?) (in reply to RCPT TO command))

View 1 Replies View Related

General :: Email Being Traced / Monitored (Postfix Mail Server)

Mar 30, 2011

I happened to know my incoming and outgoing emails are being monitored by my superior. Just wondered, can i check from the mail header to find out all my emails (incoming/outgoing) are automatically being cc to another email account? We're running mail server using postfix.

View 5 Replies View Related

Server :: Sending Email To Gmail Account Via Postfix / Procmail

Feb 2, 2010

Does anyone have some quick tips on how to send an Ubuntu server's email to a gmail account via postfix/procmail?

View 5 Replies View Related

Server :: Postfix Cannot Send Email From Thunderbird/Squirrelmail To Recipient Behind Firewall

Mar 22, 2011

My company email server has been working flawlessly for the last 5+ years. Recently, one of our clients put their email server behind a firewall (an assumption on my part; details below). Ever since, email sent from within the company (192.168.xxx.xxx internal address; all computers and server is behind a NAT firewall [Netgear FVX538]) is either being sent to the client after some delay (if email is sent using Outlook) or is being deferred until the messages expire (Thunderbird, Squirrelmail, etc.). Email sent to the client from anywhere outside the company (using Thunderbird, Outlook or any other email client) is also delivered without any problems (usually after a short delay).

All other emails to the World are being sent without any problems at all (both inside and outside the company; using any email client or webmail). I did contact the client's postmaster, but the client, being a large government agency, will probably not address the problem (if it is on their side) anytime soon. I am not sure if I can do anything from my end to solve the problem. Ever since the problem with the client began, I added two statements to the postfix configuration file (smtp_pix_workaround_delay_time = 20s and smtp_pix_workaround_threshold_time = 0s); this seemed to a bit - it reduced the delay for emails sent via Outlook to a few minutes (as opposed to 30+ minutes); emails sent using Thunderbird/webmail are still being deferred.

Server details: Dual quad-core processor machine, 32 GB RAM, dual 1 gbps network, running Fedora 14 (64-bit; loosely modeled along the lines of Perfect Server (with ISPConfig2) as described on the howtoforge website). Running Postfix (v. 2.7.1), Dovecot (v. 2.0.9).

Postfix details:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
body_checks = regexp:/etc/postfix/mbl-body-deny
broken_sasl_auth_clients = yes
command_directory = /usr/sbin

[code]....

I emailed the client's postmaster suggesting they disable smtp fixup. But still, what bothers me now is that Outlook works (both within and outside the company) while Thunderbird, webmail, etc. (used by ~90% of the users) do not. In addition, all email clients from outside the company can send email (authenticated via the company server) to the client without any problems. Is there anything I can do on my end to make non-Outlook clients work within the company (webmail is hosted on the company server; so, it would have an internal address as well)?

View 3 Replies View Related

Server :: Postfix - One Account Cannot Send / Receive Email (Other Works Fine)

Dec 7, 2010

I just set up a new email server on Debian Lenny. It's Postfix for MTA and Dovecot for IMAPS server. I use Dovecot for authentication. I have two UNIX users on the system (except root), one was added before the installation of Postfix and Dovecot. I'm not doing any virtual things, just plain UNIX users and one domain on a dynamic IP. The first user, "webadmin" can send and receive emails just fine through the server from my mail client.

Now I just added a new user, "scarleo", and it turns out I'm unable to send and receive emails with this account. If I log in (SSH) with scarleo I can use bash mail to send emails, works fine. scarleo can also receive emails from webadmin and can connect to Dovecot to read emails. However scarleo cannot send or receive to or from anyone outside the server from my mail client. I have restarted both Postfix and Dovecot after adding the user. Do I have to do something else to make this account work like webadmin's?

A few relevant lines from mail.log: (I've modded my real IP)
Code:
Dec 7 17:44:42 homer dovecot: imap-login: Login: user=<scarleo>, method=PLAIN, rip=96.136.112.229, lip=192.168.0.18, TLS
Dec 7 17:44:42 homer dovecot: imap-login: Login: user=<webadmin>, method=PLAIN, rip=96.136.112.229, lip=192.168.0.18, TLS
Dec 7 17:45:16 homer postfix/smtpd[5915]: connect from bredband.comhem.se[96.136.112.229] .....

View 4 Replies View Related

Server :: Configure Postfix In Order To Check Spam Only For Outgoing Email?

May 8, 2009

It's possible to configure Postfix in order to check spam only for outgoing email?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved