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
ADVERTISEMENT
Jul 8, 2011
I'm looking for a way to redirect e-mail with postfix based on sender AND recipient. What I want: Let's say I have 3 users:
[code]....
and an external address, let`s call it [URL] sends e-mails every day to andy, mark and john Now, MARK and JOHN, need the e-mail sent by [URL], but TOM doesn't need it. Is there a way to redirect ONLY the e-mail sent to TOM from [URL], to some other address, let`s say [URL] without affecting the e-mail received by MARK and JOHN? Unfortunately using SENDER ACCESS redirects ALL e-mail from [URL]
View 6 Replies
View Related
Aug 30, 2010
I vae Ubuntu, postfix. I need to forward e-mail based on sender. Can I do it with .forward ?
E-mail that comes from user@yahoo.com destined to user@mydomain.com to be forwarded to user@gmail.com. Other e-mail that comes from any addresse must not be forwarded.
View 2 Replies
View Related
Aug 22, 2009
This seems like a relatively simple question, but I haven't been able to figure it out from the documentation after a couple of hours of searching. I'm running postfix on my mail server, and the vast majority of my spam has the sender address spoofed to match the recipient address. I've got spamassassin up and running, and very little gets through that, so it's not a serious problem, but if possible I would like to be able to reject the mail before it arrives to reduce the system load.
Mail is sent locally via webmail, relaying is denied, so the only way that mail should be sent from the domain is via a connection from localhost. The basic idea I'm thinking of is if the MAIL FROM sender claims to be an address at the receiving domain, but is connected from a remote IP, the mail should be rejected.
View 3 Replies
View Related
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
Oct 1, 2009
I'm trying to configure our mail server to block email from a specific sender reaching a specific recipient. In other words, if one of our employees is getting harassed by a 'stalker', how would one go about blocking, at the MTA (Sendmail) level, a specific sender email address from reaching a particular users inbox? We do not want to capture the email - simply block it before it consumes server resources.The Sendmail server (MTA) is a front end to our Exchange server so no user accounts exist on the Linux server. We simply use it as a SPAM and Virus scanner then forward clean email to the Exchange server.
View 6 Replies
View Related
Feb 22, 2010
block incoming email within either postfix or spamassassin when the sender equals the recipient. The manner in which our mail infrastructure is set up would preclude this from happening. Granted, we do have outside vendors that spoof our domain so we have to allow emails in with our domain as the sender/from. The vendors do not, however, utilize the same sender/recipient when sending emails.
View 1 Replies
View Related
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
Sep 29, 2010
All the emails I send from my linux server end up in the recipient's spam folder....Although I have tried many howtos etc and checked all blacklists... It doesn't work...
View 3 Replies
View Related
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
Jan 29, 2010
After installing sendmail, I sent a mail for testing the mail I receive is from sender www-data and default email is www-data@dryaf-desktop. How do I change this email to something else ?
View 1 Replies
View Related
Dec 4, 2010
i have installed redhat 5.3 and install sendmail on it.it is working perfectly fine.my question is|:
(1) can i restrict the sender and receivers email in sendmail?eg. i want to do that i want to allow only particular email addresses to send and receive and all other will be discarded
(2) i made aliases for all user but it only receives received mail copy i want both sent and receive mail copy in aliases.
View 1 Replies
View Related
Oct 8, 2010
I have a very simple set up.With Network Manager I can have my laptop act as a router (sharing all connections).I also have apt-cacher-ng as a debian package cacher.I would like to set up iptables to filter only the urls that are meant for a debian package cacher.
For example:I could use a "forward all" rule:
Code:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3142
Except then I would get a bunch of error pages every time I tried to do normal navigating.My question (again) is: Can iptables handle forwarding only on a specific url? If so how?Or is there another solution? (prferably without full fledged software like squid)
View 3 Replies
View Related
Mar 18, 2011
how to forward a user to a Microsoft IIS server under the SAME domain name (e.g. www.MySite.com) depending upon url parameter. My goal is to do this without using a subdomain (e.g. events.MySite.com). The diagram below depicts my goal. I want my linux server to decide whether to forward the user to an IIS server or serve them content from apache based on the url (e.g. www.MySite.com/Events).
View 2 Replies
View Related
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
View Related
Dec 31, 2009
I have an email setup where all of the emails from our email host is downloaded to our Linux server using Fetchmail. Then some of the incoming emails are sent to an MS exchange server (server1.domain.com) using Postfix. What i want to do is to send a copy of all emails to Another server (server2.domain.com) for redundancy.Can postfix be configured to send copies out to both?
View 1 Replies
View Related
Dec 19, 2009
I'm setting up email gateway using Postfix, Amavisd-new, ClamAV and SpamAssassin on Opensuse 11.1. Everything seems okie, but I can't have messages with added spam headers, such as:
X-Spam-Flag: NO
X-Spam-Score: 0.233
X-Spam-Level:
X-Spam-Status: No, score=0.233 tagged_above=-10 required=6.6
tests=[ALL_TRUSTED=-1.8, AWL=0.536, BAYES_50=0.001,]
When I try to debug amavis, I can see that SPAM-TAG, <abc@yahoo.com> -> <celeron@domain.com>, No, score=5.406 tagged_above=-999 required=6.2 tests=[LOCAL_DRUG=4, NO_DNS_FOR_FROM=1.407, NO_RELAYS=-0.001] but they don't add to email messages. I've configured amavisd-new with $sa_tag_level_deflt = -999 to add spam headers at all but not successful.
View 6 Replies
View Related
Dec 16, 2010
How can one create their own web-based email server, under these constraints:
- Emails are stored in a MySQL database
- Emails are accessed through PHP scripts
- Emails are received from pop servers and sent through smtp servers every 10 minutes acting as if it was an email client to yahoo or hotmail or other pop/smtp servers
View 5 Replies
View Related
Jan 26, 2010
I have a "Forward to" filter set up in Evolution. It halfway works. The emails I want forwarded are matched and put in my Outbox. The problem is that the emails are never sent. I have to manually click the "Send / Receive" button. If left alone, the emails will sit there over the weekend, never sending until I hit Send / Receive.
View 1 Replies
View Related
Jul 18, 2010
Ubuntu 9.04 - recently, I have been getting a newsletter from a certain sender. If I select the mail even to delete it ( not opening it ) Evolution promptly shuts down.
So long as I don't even put the mouse cursor on the offending mails, there is no problem. Now, I am building up a nice collection of unread mails which I cannot delete.
View 4 Replies
View Related
Jul 26, 2010
In my Windows environment, I use email client such as Microsoft Outlook to connect to our email server to send email with the following configuration:
Incoming server (POP3): 995 - (requires with SSL)
Outgoing server (SMTP): 465 - (use encrypted connection SSL)
[code]....
And the mail server requires user ID login and password.how do I setup a text command based email client in my Linux (Centos 5.1) to send out email through the existing email server above, which is in another machine? The email client has to be text command based because I need to use command line to send notification email from anothar application installed in my Linux (Centos 5.1) Since the email client will only be used to send email notification, I don't require setting up of an email server in my linux.
View 2 Replies
View Related
May 21, 2009
I have an email server configured with postfix, dovecot, saslauthd and squirrelmail. It works great. In fact I'd even say it works too well: in squirrelmail, I can configure any sender address and my server will accept it. Message will be sent, wether the sender's address is [URL] or [URL]. Is there any way of limiting it in such way that only [URL] is accepted as sender's address?
View 6 Replies
View Related
Nov 13, 2010
how to stop Evolution adding the sender's email address, that is the one who sent it to me, in the body of the email when I forward it? I have been through the settings and help and am so far unable to find any action I can take.
View 6 Replies
View Related
Apr 11, 2010
I was wondering if there's some web-based email application (like Zimbra) or perhaps gmail can do it I'm not sure that can handle both receiving and sending of mail from multiple email accounts.I have about 4 different email accounts with various different domains and would like to have one platform which has an inbox for each account and from which I can send mail from any of the accounts
View 1 Replies
View Related
Mar 11, 2011
All, i am receiving numerous entries for programs such as snmpd in my messages file. Is there a way to add a rule somewhere to have these and other annoying unimportant entries go to /dev/null or something?
I tried adding an entry to /etc/syslog.conf, but that hosed any logging into the messages file, so maybe i added it wrong?
I want to try and do this with out installing anything additional.
View 6 Replies
View Related
Aug 8, 2010
I'm testing my mail server, and sending email works fine. However, when I tried to send emails to my server from gmail, I get this log:
Code:
Aug 8 14:18:17 anbient postfix/smtpd[14228]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
Aug 8 14:18:17 anbient postfix/smtpd[14228]: connect from mail-qy0-f169.google.com[209.85.216.169]
Aug 8 14:18:17 anbient postfix/smtpd[14228]: F3D4B1DD02C0: client=mail-qy0-f169.google.com[209.85.216.169]
Aug 8 14:18:18 anbient postfix/cleanup[9988]: F3D4B1DD02C0: message-id=<4C5EBC96.2030800@gmail.com>
Aug 8 14:18:18 anbient postfix/qmgr[9993]: F3D4B1DD02C0: from=<felipefidelix@gmail.com>, size=1982, nrcpt=1 (queue active)
Aug 8 14:18:18 anbient postfix/smtp[9995]: connect to net[174.132.240.146]:25: Connection refused
Aug 8 14:18:18 anbient postfix/smtp[9995]: F3D4B1DD02C0: to=<fidelix@net>, orig_to=<eu@felipefidelix.com>, relay=none, delay=0.15, delays=0.09/0/0.05/0, dsn=4.4.1, status=deferred (connect to net[174.132.240.146]:25: Connection refused)
And this is strange. 174.132.240.146 seems to be the web address 'net.net'. I am sure this has to be some setting in postfix, cuz its trying to deliver the email to 'fidelix@net', and that cant be right.
Here is my postconf -n output:
Code:
root@anbient:/var/mail# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/ .....
View 9 Replies
View Related
Mar 8, 2010
I have a batch job which logs in to the server every 10 minutes via windows rsh. The job checks to see is there are any files that need to be send via a EDI serverto a supplier.The following logwatch report is swamped with the login messages and would like to either suppress the logging in PAM? or suppress the entry in the logwatch report?But I still want logging id the username is not username1.Connections (secure-log) Begin rshd[1754]: pam_rhosts_auth(rsh:auth): allowed to username1@10.0.0.1 as myedi
View 2 Replies
View Related
May 4, 2009
GNOME has adopted the pulseaudio infrastructure and it has grave errors reading from ALSA sinks. One of the many effects is that every 2 or 3 seconds a 3 line error message is written to the syslog to the effect of 'ALSA woke us up...blah blah blah' and it is filling up everyone's syslog. What I need is a workaround to just stop these messages from being written so I can level set and figure out a long term course of action.
View 2 Replies
View Related
Dec 3, 2009
Im pretty sure this is trivial to config, but I havent had any luck searching on google.My situation is: I want to forward any emails sent to my domain to another account. So:
Code:
root@domain -> another_acc
any_other_system_user@domain -> another_acc
any_unknown_user@domain -> another_acc
View 3 Replies
View Related
May 19, 2010
How to filter condition based on full hostname? ie. allow inbound packets to port 25 if the packet comes from [URl]..
View 1 Replies
View Related