How to send an email from a nonexistent (auto-generated unique identifier) ​​email?

I am the owner of the domain, and currently I have its mail (MX) in Google Apps for Business.

I have a general account, so if someone answers an e-mail to the generated -unique-id@mydomain.com , I have a robot that will read this letter and do some processing.

Problem: how can I send an email from this sender address? I mean: I can’t create a user ID for each generated ID, and if I authenticate with Google SMTP with some user, the sender will be automatically filled in as this user address. (I know that I can use any "verified aliases" as the sender (or respond to), but I also cannot create an alias for each generated identifier.)

In short: I need to send emails from a nonexistent email address. How to do this using third-party existing services (I do not want to host my own SMTP server if there is no simpler solution).

Are there hosted mail servers that let me do this?

PS: As you can guess, this is a ticket-like system that must generate a unique email address for each stream . (Yes, I know that I could use Subject for a unique identifier. Is this the best solution?)

+4
source share
2 answers

Gmail allows you to use the local part of the email address subaddress as ad-hoc alias , for example

support+ticket123@mydomain.com

will be redirected to support@mydomain.com and you can use the local part / alias for filtering.

, , support +ticket123@mydomain.com, , support@mydomain.com, From / Reply- support +ticket123@mydomain.com.

+2

, , SMTP-. .

1) . - cpanel plesk.

2) ticketing@example.com .

3) php script, ticketing@example.com , : .

4) , SPF, DKIM , . SPF DNS:

v=spf1 a -all

, , IP- , " ".

, SMTP- , , , IP- , , . , - IP- .

DKIM , php-mail-signature, DKIM . , .

, DKIM SPF

, , . , . , . , .

, php-, , .

0

Source: https://habr.com/ru/post/1614354/


All Articles