Skip to content

Change client ip address #2970

Answered by Synchro
Riivz asked this question in Q&A
Oct 26, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

PHPMailer doesn't get to choose what IP it connects from; that's set by the wider PHP configuration and the networking config in the container, in particular the default routes. This is outside PHPMailer's control.

Separately, PHPMailer doesn't like single-word hostnames because they are indistinguishable from invalid public hostnames, so you may find it's effective to rename your instance from mailserver to something like mailserver.local, or whatever is workable for your config.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Riivz
Comment options

Answer selected by Riivz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants