You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While sending an email using the following code. I am getting an error Client does not have permission to submit mail to this server. The server response was: 4.7.1 <[email protected]>: Relay access denied
NOTE: This same code working fine if I changed to address [email protected] to testtocode@localhost
same for me. When I run mailtrap on localhost with docker-compose it accepts all emails.
On OpenShift / Kubernetes every email address not on '@localhost' is denied.
under the covers the image adds to the main.cf postfix config the options given to this environment variable and the "mynetworks_style" with a default value of "subnet" (see http://www.postfix.org/postconf.5.html#mynetworks_style for details).
If you set the mynetworks= to a subnet that makes sense for to allow your other hosts to send then you should avoid the dreaded Relay access denied
One gotcha with the image over there, and probably this image too, stable-slim has moved on as debian has made new releases, so for me to build this I had to set that to oldstable-slim
jeffrichards
pushed a commit
to jeffrichards/edw.docker.mailtrap
that referenced
this issue
Jul 28, 2022
While sending an email using the following code. I am getting an error
Client does not have permission to submit mail to this server. The server response was: 4.7.1 <[email protected]>: Relay access denied
NOTE: This same code working fine if I changed to address
[email protected]
totesttocode@localhost
The text was updated successfully, but these errors were encountered: