BillionMail icon indicating copy to clipboard operation
BillionMail copied to clipboard

Link in emails

Open ilyafdtv opened this issue 6 months ago • 8 comments

I have installed BM at home server and make a proxy from mail2.domain-example.com to my home ip - 91.x.x.x:8443/secret But there is a not working link in sending emails: https://91.x.x.x/pmta/IIPeApXkGMj9...

If I manually change link to https://mail2.domain-example.com/pmta/IIPeApXkGMj9... that all works well.

How I can change links in all sending mails to right domain name?

ilyafdtv avatar Jun 08 '25 18:06 ilyafdtv

Can you share me how do you setup the proxy? And did you added the A record for your IP?

dreambladeflag avatar Jun 09 '25 10:06 dreambladeflag

Can you share me how do you setup the proxy? And did you added the A record for your IP?

I cannot make the A record just for my home server, because port 80 and 443 is in use. I have made the A record for VPS with Nginx Proxy manager for proxing to my-home-server-ip:8443/secret

ilyafdtv avatar Jun 09 '25 16:06 ilyafdtv

BillionMail currently doesn't support this proxy method because we detect domain access via A-record verification. This appears to be a Bug, which we've logged for fixing.

dreambladeflag avatar Jun 10 '25 02:06 dreambladeflag

👋 I'm also facing this issue.

When sending emails from BillionMail, all automatically generated links (such as unsubscribe, tracking, etc.) are using the server's public IP and port instead of my configured domain name.

I'm accessing the BillionMail web UI through a Cloudflare Tunnel, and I'm using Google SMTP to send emails. Because of that setup, I can't create MX records or point mail.mydomain.com directly to the server — since it's behind the Cloudflare proxy.

It would be really helpful if there was a way to manually set the domain used in email links, rather than relying on server IP detection.

Thanks! 🙏

malakaisbest avatar Jun 23 '25 14:06 malakaisbest

Hey, @malakaisbest ,

You can configure the domain for the console panel on the Settings page. Please ensure that you add an A record pointing to the public IP. Don't forget to apply a free certificate and test domain access. After them, you can use Email Marketing to send a test email to yourself to check that it is working.

dreambladeflag avatar Jun 24 '25 01:06 dreambladeflag

Hey, @malakaisbest ,

You can configure the domain for the console panel on the Settings page. Please ensure that you add an A record pointing to the public IP. Don't forget to apply a free certificate and test domain access. After them, you can use Email Marketing to send a test email to yourself to check that it is working.

Thanks for the guidance!

However, I'm facing a technical limitation. The dashboard instructs me to point an A record (e.g., mail.example.com) to my server, but I already use that domain with G Suite for email, so I can't change the A record.

Additionally, I'm accessing the BillionMail web interface through a Cloudflare Tunnel, so the BM service is not directly exposed to the internet. This means DNS queries to the domain will return Cloudflare proxy IPs, not my server's actual IP.

Is there a way to manually configure BillionMail to use a specific domain name (like my BM web UI domain or any other custom domain) in the links and URLs inside outgoing emails, instead of defaulting to the server's public IP?

Thanks again! 🙏

malakaisbest avatar Jun 24 '25 07:06 malakaisbest

if you want to use BM in Reverse Proxy Then Reverse Proxy Url - http://xxx.xxx.xxx.xxx only , no any port or /secure

Kavisaher avatar Jun 24 '25 15:06 Kavisaher

if you want to use BM in Reverse Proxy Then Reverse Proxy Url - http://xxx.xxx.xxx.xxx only , no any port or /secure

Yes I already use Cloudflare as my reverse proxy. I can acess the BM web interface through the internet. but when email sending, BM send servers public IP instead of the domain name. See the attachment

Image

malakaisbest avatar Jun 24 '25 16:06 malakaisbest