Check the Status of Emails Sent by Postfix - email

I'm writing an application that sends emails using postfix and need to know an email is sent (250 ok) or not. I can check the email status from log files (and parse it by something like rsyslog) , but it's not a clean way.
My question is : is there any clean way (Api or callback) to check the status of an email?
Thank you.

Related

Why unsend email is not possible in technical explanation?

I really want to know why does sent email cant be unsend
Is it because after mail reach the recipient MTA our Mail Server does not have control/permission to that MTA so it is not possible to unsend it?
Or is it because in the recipient SMTP Server has downloaded the sender mail, so it will always available in the recipient SMTP Server after get sent?
or what cause that ?
and if the cause is point number 1, my question what if the Mail Server is the same as mine or in other words for example me and the recipient use gmail
thank you for helping me
The reason might surprise you but it's rather simple. Because time is linear and you can't travel back in time.
Now, if both you(the sender) and someone else(the receiver) have Microsoft Outlook AND your email accounts are hosted in a Microsoft Exchange Server, then:
Open the Sent Items folder, and double-click to open the email you want to recall.
In the Message window, please click Message > Actions > Recall This Message. See screenshot:
In the popping out Recall This Message dialog box, please check the Delete unread copies of this message option, and click the OK button. See screenshot:
Note: It’s optional to check the Tell me if recall succeeds or fails for each recipient option.
If your recipients have not read the specified email yet, this email will be deleted from their Outlook automatically.

Cannot receive WooCommerce emails / WP emails, Linux mail (ssh) works

Issue : WooCommerce emails are not received.
What does work :
1) with ssh connexion to server, if I use mail Linux command, its works.
2) With WP, Check Email plugin works as well.
3) A user changed his password, I received the email notification, as others WP emails notifications : new user created, and others ...
What does not work :
When I bought something (as a buyer), I have the PayPal email, but any WC email.
Someone else did the same test, same issue.
When I send (as admin) manually, an email to a customer (myself) with WC, it does not work as well.
I think I set up correctly emails with WC : check box => activate notification.
I did not change the look of emails.
Either HTML or text emails does not work.
At the moment, I would not like to use any SMTP plugin, as my server can send emails.
I don't know where to look for about this issue ?
Might PayPal forbid WC to send emails ?
Thank you for your help !
Nils
I just had to set up reverse DNS with domain name to make it works.

Can't receive emails send from php

I have set up several email accounts on my vps hosting but I can't receive any emails that are send via php from another hosting. Everything works fine when I send emails from gmail for example, I receive them without a trouble. Does anyone know any reason why emails sent from php can't be received?
Try using phpmailer, it's a good mailing class which automatically sets well defined headers so that the mail is more likely to not land in the spam folder.
Sounds like a spam filter issue. Have you set up a proper Sender ID/SPF framework in your domain name service so that the host appears to be a valid MTA for this domain? Look here for a detailed explanation of Sender ID/SPF/DKIM, etc.
Check your spam folder.
GMail is able to differenciate if a mail has been sent from outlook for example or an automated application. (I dont know how, but they can). If i send an email from my work account to GMAil works, if its a web app or executable with the same email adress, it ends up on the spam folder.

Accept all incoming email, send messages from multiple identities

I am working on a research project that has to do with responding to spam. I want to implement the following functionality:
1. A mail server that saves all incoming email messages in an easily accessable form - hard drive, database, etc. For example, if someone sends a message to peter#domain.com or akjfhasfkjf#domain.com, this message should be accepted and saved.
2. I should be able to reply to these messages from the same server/account. E.g. a message gets delivered to peter#domain.com, so the spammer receives a response from the same address.
Any suggestions on any software / packages that can help me with that? If I can interface with them with Java or Python, it would be even better.
Thanks.
you could run a postfix mailserver with fuglu,a python framework for mail filters. it would be very simple to write a plugin that does what you want.
but remember: responding to spam is in most cases a bad idea. the sender address is almost always forged, so the reply goes some innocent victim instead of the spammers inbox and your server could be blacklisted for backscattering.

How can a read receipt be suppressed?

I am programmatically "reading" emails using WebDav. I am also deleting these emails when I've finished having my way with them, however, this is causing an interesting problem. Each time I delete an email the original sender is getting a not read response. I have logged into Outlook Web App and checked the option Do not automatically send a response but this doesn't seem to help.
Is there ANY way to remove the request for read receipt from the email before deleting it?
We decided that we didn't want to make any modifications to our server and a solution that could be implemented in my existing program would be the most ideal.
I read on a few sites if the email was marked as read through IMAP commands on the exchange server that the read receipt would not be sent when deleted/opened via the client (Outlook Web App or Outlook). So that is what we did:
Logged into email server via IMAP
. LOGIN user#mailserver.com password
Selected the folder to process
. SELECT Inbox
Made the changes to all emails in the folder
. STORE 1:* flags \SEEN
This sequence marks all the emails in the inbox as read, which then allows my program to delete the emails after processing without a receipt being generated.