capture the Failure mail [closed] - smtp

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is it possible to capture the failure mail. I have created a application for sending mail, i have a log file to store the sent mails. If the sent mail is failure, i just want to find out the failure mail and update the log file.
Is it possible! Is there any way to match the sent mail and the failure mail
Please help me and guide me.

If you mean by failure, a bounced email, you can add an email address to 'return-path' header. If the email is bounced it will be returned to the the email address specified in the return-path. You can then set up a service to analyze these emails.

You have to specify what client are you using, is it Postfix, sendmail, etc?
And what do you mean by "failure".
The basic approach would be to use crontab. It can direct error message
to your email, when it fails
MAILTO=youremail#foo.net
#
# run five minutes after midnight, every day
5 0 * * $HOME/bin/emailcode
If you use sendmail, you can always
verify the log at:
/var/log/maillog

Related

HTTP request withing email body [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Using src html and url image from webserver, can the server get the message-id from the email header?
Or, is it possible for an URL to only work with a particular email message?
Ben
No. When an HTTP server gets a request initiated by the user loading remote images in an HTML formatted email, there is no way for it to identify the email.
The closest you could come would be to use unique URLs on a per email basis but that suffers from two flaws:
It might be flagged as tracking code and used to increase the spam score of the email
The URL can be copied by anyone with the email (including by forwarding the whole message) and reused elsewhere

SMTP DATE command purpose? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am looking at my SMTP logs. The script I just run tells me that one of our mail servers has sent 19848kb, and received 386kb. This is pretty weird as this server should just be forwarding on mail that it received.
One of the sources out outbound traffic I noticed is for lines to do with the DATE command. For instance, this line:
11/16/11 00:26:57 SMTP-OU 8AA56F43369C40ECBE07D7A805617D74.MAI 1184 [ipAddress] DATE 250 2.0.0 OK 1321403130 v50si13351192wec.51 172503 45
DATE is the command. 250 2.0.0 OK 1321403130 v50si13351192wec.51 is the response to the command. 172503 is the number of bytes sent, and 45 is the number of bytes received.
I can't find the specification of what this command does. Is it something like Data-extended? It can't be transmitting just the calender-date, because it is too big for that.
There is no DATE command in SMTP. I guess they are using this word only in the log, to mark the second part of the DATA conversation. I mean the fist part is:
DATA
354 go on
The second part is:
... the actual data ...
250 OK

Email address links for user [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a database system to keep track of students. This is used by a few other people in the office who are not tech savvy.
I need to be able to email about 120 students at one time. Given the character limit on URLs/browsers/what have you, using mailto is not an option; the character count is 2878.
Using a PHP form would make the most sense, but my unsavvy coworkers need to send email from Outlook. Mainly so their sent mail reflects every message they've sent out.
Any ideas?
If the set of recipients is reasonably stable, the standard tool for this is a mailing list. A closed mailing list can be set up on your mail server, or you can use something like Google Groups to create a closed list where people can enroll and unsubscribe as they see fit.
I think you could make it in php sending two emails:
One email to the receiver.
One email to the sender
You just need a rule in every Outlook that put the second email on the sent folder.

Reason for gmail spamming emails from my server? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have been using some SMTP server for sending mails to gmail server. The problem i am facing is all the mails from a particular domain(say ...#somedomain.info) are treated as Spam by gmail. Is there any way to solve this issue?
Have you analyzed your outgoing mails? What SpamAssassin score do they get if you send them to a server with a SpamAssassin filter?
Normally your issue indicates a wrong mail server setup. Wrong DNS setup, blacklisted on DNSBLs, invalid DKIM or SPF setup, invalid headers or mail encoding, ...
But at first you have figure out what the root cause is. You only stated the impact. And SpamAssassin tests hundreds of rules for many common mail problems. So knowing the rules that get hit lead to finding the cause(s).
If you like you could write a mail to mailtest[AT]malowa.de and I will analyze the score.

How can I tell if I have an open relay? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to work out if I have an open relay on my server. How do I do that?
I've tried http://www.abuse.net/relay.html
and it reports:
Hmmn, at first glance, host appeared to accept a message for relay.
THIS MAY OR MAY NOT MEAN THAT IT'S AN OPEN RELAY.
Some systems appear to accept relay mail, but then reject messages internally rather than delivering them, but you cannot tell at this point whether the message will be relayed or not.
What further tests can I do to determine if the server has an open relay?
Eh? As your link tells you, register for the site and it will give you an address #abuse.net, valid for 24 hours. Enter that address into the testing form. If your abuse.net account receives the test email, you have an open relay.
You could try setting up a email client to sent email through your server, from an email address that isn't hosted on the same server. If you can successfuly send mail, from an email address at a different domain, without entering a login and password for your SMTP server, then it's probably an open relay.
This depends on your MTA and how you've configured it. Ultimately there is only one thing you must do to prevent relaying. Restrict relaying to authenticated users and/or restrict relaying to specific IPs. I prefer to restrict all IPs except localhost on my mail server and require authentication from everyone else.
The common mistake is to allow more IPs than necessary. Imagine a user on a cable modem who decides to allow the roommate's laptop to relay with the statement 192.168.1.0/24 rather than the more specific 192.168.1.0/29. Now anyone else on the /24 can relay off the server.