General :: Scan Each Incoming Mail With Conditions On Sender Name And Subject
Jan 8, 2010
Request your help in writing a shell script for the following requirement:
1) scan each incoming mail with conditions on sender name and subject
2) scan the mail body for set of characters and email them.
general usage is as follows: I get a mail as follows from: [URL]... subject : Urgent, reply body : name : xyz contact : 12345 the script should mail the following as subject line: n:xyz c:12345 I know procmail is a good option for this, but I'm compelled to use shell script
View 3 Replies
ADVERTISEMENT
Sep 23, 2010
Here is a script that I use to send mails
Code:
#!/bin/bash
SUBJECT="This server has problem"
TO="308718@CDCTGIMCLSB.localdomain"
cat mail | mail -s ${SUBJECT} ${TO}
I am receiving the mail in mail box of system, but subject line getting truncated to just This instead of This server has problem. Here is mail
[Code]...
View 4 Replies
View Related
Apr 19, 2011
I want to know how can I use sender an receiver of the email in name of file for storing mail in procmailrc. I made one but it does not work.
Quote:
SUBJECT=`formail -xSubject:` # regular field
FROM=`formail -rt -xTo:` # special case
:0 b
* ^FROM.*
| sed -e '/^To: +?[0-9]*$/,/report/!d' > ${FROM}${SUBJECT}--`mktemp 20`date +%y-%m-%d-%S--`XXXXXX`
it works when I use :
Quote:
| sed -e '/^To: +?[0-9]*$/,/report/!d' > `mktemp 20`date +%y-%m-%d-%S--`XXXXXX`
View 1 Replies
View Related
Feb 5, 2010
I'm running SuSE 11 with sendmail and dovecot.I'm sending and receiving mail. But as soon as someone sends me a mail with an attachment over 1mg it seems to fail. I have no problem sending big attachments.
View 7 Replies
View Related
Mar 25, 2011
I'm trying to set up my Thunderbird 3.1.8 (running on Ubuntu 10.04 LTS) to play a .wav file of my choice when new mail arrives. The file I've chosen is 8,8 KB in size and lasts 3 seconds. I've selected the "Play a sound" + "Use the following sound file" options in my Preferences, but only the first second (if that) of the sound gets played - both when I click the "Play" button in the Preferences menu to test it, as well as when receiving mail. Restarting the program with my new settings doesn't help.
Actual question(s):
- Is there a limit on the size/duration of the sound one can use for such a signal in this program?
- Is there any way to modify this limit?
View 2 Replies
View Related
Sep 19, 2010
I need help with header_check filter on postfix. In the last week mail users received a spam e-mail without subject line and I don't know what is the way to reject this. This is the example of message header:
From: "example@example.com"
Date: September 16, 2010 9:07:43 AM GMT-04:00
To: <example@example.com>
I want to reject e-mails that don't have Subject line
View 2 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
Nov 11, 2010
send email i got bouncing error .see below error;
554 Your access to this mail system has been rejected due to the sending MTA's poor reputation. If you believe that this failure is in error, please contact the intended recipient via alternate means.
View 1 Replies
View Related
Feb 9, 2011
i have a domain where i can send emails to any domain ,unfortunately i cant receive email from any domain . am getting the below error ;
T=remote_smtp: retry time not reached for any host after a long failure period
View 2 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
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
Mar 4, 2011
I am setting up a server that is to serve websites and host mail.I have run into a problem regarding the mail server. The server is completely set up but for some reason it is not receiving the e-mails I am trying to send to it. When i mail to the associated mail address from internal by the "mail" command it works fine. But when I try from an external mail server, the mail never gets through. And I do not receive a bounce e-mail.
It says that the port 25 IS open for TCP connections (in iptables - I opened it myself). And surely when I telnet to it on that port from inside the server, I get an connection. But when I telnet from an external network I get a refused connection. It would sound that the port is in fact not really open for external use, in my mind, but it is. Is there possibly anything else I might have neglected to check in this mystery
View 1 Replies
View Related
Dec 21, 2009
i'm using Thunderbird as mailclient.n i receive a new mail, i want TB to run an application (which blinks my notebook-keyboardlight ).Is there a way to do that?And btw. does someone know, how to minimize TB 3 in the systray of gnome (Fedora 12)?to get the mailnotification icon in the systray?
View 2 Replies
View Related
Jun 26, 2010
I'm using postfix on Ubuntu 9.10 and all I need is to occasionally send automated emails from perl or php scripts when data processing errors occur. In other words, I want to reject any connection attempts from remote clients and otherwise allow nothing except outgoing emails from one particular account.f I add this line to the default main.cf, will it do the trick or is it more complicated?
Code:
smtpd_sender_restrictions reject
View 3 Replies
View Related
Sep 17, 2010
I plan to make a script for the console server via mail, but I find difficulties in the reading of email applications, to email me using the mail command, but how to read the incoming mail
View 1 Replies
View Related
Feb 20, 2009
I installed a new server running CentOS 5.2. I have iptables and SELinux off. The new server will not accept incoming mail. It will send out fine.Our mail server redirects mail for it.help to it.[url]...- [url]....is this server. Any messages sent to this address get stuck in a deferred queue. The error message on each one (from the mail server admin console) is "connection to[url]... [10.9.10.202] - connection refused". I can ping [url].... from the mail server.
This seems like a firewall issue, but it is off. Is there some configuration file I need to change to allow incoming mail? Or is there some test I can run on the new server to further troubleshoot what is going on
View 4 Replies
View Related
Jan 12, 2009
assist me in using the iptables firewall to block all incoming mail traffic (SMTP port 25) except that of a certain IP(s)? the situation is that we have a server that we only want to receive mail from a particular sender.
View 1 Replies
View Related
Apr 4, 2011
I've read many post close to my subject regarding blacklisting incoming emails, but non of them described what I really want:How can I reject a continuously changing email from my postfix, here is what I mean:
abduooo+bncCIr7stnbBBCssufsBBoEzTHSKg@googlegroups.com
abduooo+bncCMfZgc-iExCKr-fsBBoEMzorbA@googlegroups.com
abduooo+bncCLf5kv6MHRCtmefsBBoEjYnAAQ@googlegroups.com
I think you got what I mean, the thing I've taken from the posts I've read is that I created a sender_access file hashed it and added the:smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_accessto postfix main.cf configurationThe sender access file reads:abduooo*@googlegroups.com REJECTBut that didn't work, I know that there is some magical slashes and dots to be added to the sender_access, but I don't know which.
View 1 Replies
View Related
Sep 1, 2011
I have been trying to solve this problem for two days now looking at various forums and websites but can't really figure out what's going on here.I have setup postfix on my ubuntu and I can send emails using "telnet localhost 25" and the ehlo thingy. Apache can also send emails. My problem is with incoming emails. When I try to send an email (through Gmail) I get the following error message:
Code:
Delivery to the following recipient has been delayed:
root@example.com
[code]...
View 2 Replies
View Related
May 17, 2011
As a part of migration I am proposing different scenarios to my organization. One which is asked to prepare is to configure multiple mail servers to handle incoming and outgoing mails. Say I have -[URL], I need to have accept mails from [URL] and send mail from [URL].
View 1 Replies
View Related
Apr 28, 2010
i need is to have http and https allowed, together with mail server (incoming and outgoing) and ftp, ftps and ssh. all other ports have to be closed.
View 3 Replies
View Related
Apr 1, 2010
Recently did a fresh install of F12, previously used F11 without any problems. Now Evolution move ALL received messages to trash automatically. I have had to make rules to move each e-mail to the inbox but still all incoming messages go straight to Trash.
View 3 Replies
View Related
May 23, 2011
I am using Postfix on CentOS to send mail through a relayhost. The mail sends fine, but on certain clients such as the mail client on the iPhone or Windows Live Mail, the message is received with '(No Sender)' in the sender field. The Apple Mail client on the iMac works just fine.
Here is the PHP code I am using to send the mail code...
Wondering if there is a configuration setting in /etc/postfix/main.cf I can use to fix this problem. I have scoured the help files but have come up empty.
View 5 Replies
View Related
Aug 13, 2010
I have a server with a domain running and im trying to resolve the mail server but i can't see where to start. I use OpenSuse 11.2. Basically, for starting, i want postfix to send incoming emails to a php script or perl. for outgoing emails i guess that i could use php mail function and i will see what else to have. I configured the dns. I do a dig.mydomain.tld MX and i get the following:
mydomain.tld3600INMX0 mail.mydomain.tld
mail.mydomain.tld 3600INAmyNumericalIp
So now my system is receiving MX content but i dont know what to do.
View 9 Replies
View Related
Mar 20, 2011
When I wanna use wget to download some file by http, which conditions fulfilled on the server would make that successful. I mean that such service httpd is running and so on.
View 1 Replies
View Related
Feb 22, 2010
What is the easiest way to setup an incoming and outgoing mail server on centos? Without using a control panel, such was webmin.
View 2 Replies
View Related
Jul 21, 2010
I dug up an old P2 machine and loaded it with 320MB of RAM and a cheap BIOS-less RAID card using a VT6421 chipset. I attached a 1TB SATA HDD to it and booted it up with the latest gentoo minimal install disk. I have installed gentoo before. The first problem I had is that the system would hang at Scanning for sata_via.... I resolved this by booting with "nosata." This brings me to my first question: Will I be able to use my drive once the OS is installed? It seems like the answer would be yes, but I wanted to make sure.
After booting with the 'nosata' option the system would hang at scanning for pata_qdi.... I resolved this by booting with 'noload=pata_qdi.' Now the system is hanging at: attempting to mount media:- /dev/hdc I have been searching but have not found anything definate on this one. One post ( i am sorry but i forget where; i was working on this for hours) suggested that the problem is caused by the age and speed of the drive. I really don't know much about these things. Can anyone confirm this? Is there a way to make it work, or do I have to replace the drive? If I replaced the drive won't the new one just slow down to accomodate the old motherboard?
View 1 Replies
View Related
Mar 12, 2011
comparing multiple items or conditions using 'if' statements? I want to do something if one or more conditions is true, for example:
If a = 1 or b = 1.
I've tried:
[Code]...
View 5 Replies
View Related
May 4, 2011
I want to have separate incoming and outgoing mail servers with smtp authentication.
Server1 will act as incoming mail server
Server2 will act as outgoing mail server
How can i authenticate domains users of Server1 from Server2 for smtp authentication.
View 2 Replies
View Related
Feb 1, 2011
Anyone know a simple command line to check for a specific email - by subject - on an SSL secured IMAP server?
View 2 Replies
View Related