Adding verification in From address of email sent through Oracle procedure - email

I have a procedure that sends mail to the user based on relay mail servers. Whatever we mention in the from address the email looks as if it is sent from that address. Is there any way to configure the mail server such that the email can be sent only after authorization.

Related

Domino: When forwarding a copy of all inbound emails to an external email address, the original recipient is missing

Our service needs a copy of all inbound emails from the client. This is not a problem for Exchange, Gmail and other email client - server combos.
However, our clients using HCL (formerly IBM, lotus) Domino / Notes combo are able to forward the email, but Mailgun (our inbound mail system) is rejecting the emails because they do not include the original recipient in the envelope.
Does anyone know how to forward a copy of all emails from the Domino server in a way that INCLUDES the original sender?
A mail is received by a Domino server for person user A. You would like to have an exact copy of that mail sent to your mail server. That can probably be accomplished on the Domino server using a mail group.
Example:
a mail is sent to sales#acme.org
sales is a standard mailbox for someone
The following changes can be applied:
create a mail group called salesgroup
add sales to the group
add youraddress#yourcompany.org to the group
When a mail is sent to salesgroup#acme.org, the Domino server delivers the mail to every address mentioned in the group.
N.B. The Router Configuration document will have to be modified in order to permit an outside mail to be relayed to an outside address.

Send mail and Add followers not working for all users of Odoo

The scenario goes like this:
Email setup for outgoing mail server has been done with email address like help#companydomain.com(example) and configured it.
Under General settings, I have used alias domain as companydomain.com. Also I have set email aliases for each user.
Now any user has set his email as help#companydomain.com can send mails and add followers(Add followers will drop a mail to followers) and the mails are received to any email client like thunderbird .
But when other users send mail, it does not deliver to email client like thunderbird and outlook.
Pretty much confused on how to configure the outgoing email gateway server in odoo. Any suggestions would really be helpful.

How to rewrite outgoing email address to SMTP login name in postfix?

I host a mail server, where users log in via SMTP to send email.
The current config of postfix allows every authenticated user to send emails with any sender address.
My objective is to prevent users sending mail with an other FROM: address than the sender’s own SMTP login name.
For example: if you log in with the username bob, you’re only allowed to send emails with the sender address bob#example.com.
smtpd_sender_restrictions could be a solution, but this would reject clients, who entered any other address.
A more elegant way would be to automatically rewrite all from addresses to the username they logged in with. That's, what I'm trying to achieve.
Just like Gmail, if you use it as an SMTP service to send emails, the messages are sent with the address you logged in to Gmail.
Currently the SMTP authentication is done by dovecot:
smtpd_sasl_type = dovecot
The server itself is really simple, no fancy custom per-user based stuff or multi-domain setup, just users SMTPing in, and sending emails. :-)
I know that smtp_generic_maps and sender_canonical_maps exist, but I coudn't find the way to automatically rewrite the senders address.
By automatically I mean not one-by-one in a separate file.
Thank you for your help!

php mail function & smtp approach not sending email from yahoo.com and some other domains

I am trying to send email from PHP using mail function to gmail ID, but email is not being delivered to the recipient if sender defined in header is yahoo ID, but if sender is hotmail then email comes fine. IF it goes sometime then it gets delivered at spam and the message on top of the message is 'This message may not have been sent by: xxx#xxx.com'
I have also tried phpmailer with smtp and ssl is also enabled on server, but no luck. Server is linux based hosted on godaddy
Thanks
This is because you can't send mail from a yahoo address unless you send it through a yahoo server - documented here. It will be bounced with a DMARC failure.

Send SMTP with From address of another domain

My goal is to create a canned email on my server and then send the email from client email addresses. To do this and not be marked as spam I understand it must come from a domain matching the from address.
There are many user email addresses I would need to send email from, all with the same domain. With cooperation from my client, could I set this up to work with one SMTP credential or would I need credentials for each and every individual user?
To clarify, if I get an SMTP server address with a un/pw from my client, would that be enough to send from:
george#example.com
martha#example.com
ted#example.com
Thanks!
It depends completely on the SMTP server you are using. Some servers will allow this, like Google's SMTP, but it will attach a Sender header to the outgoing message when the From header does not match the authenticated account.
Example:
You authenticate with joe#gmail.com
You send out with From: bill#gmail.com
The message will contain From: bill#gmail.com, but Google will attach
Sender: joe#gmail.com to the message headers.
So, it completely depends on the SMTP server and their policy.
Problem
You want to avoid joe-jobbing in your automated messages.
Your Options
It depends on how you're submitting jobs to the MTA.
If you're authenticating to a remote SMTP server for each message, then you need credentials for each user.
If you're injecting messages directly into an MTA (e.g. with the sendmail command) that is authorized to send mail for the domain, then you only need privileged access.