how do i set the mail server to be used in proxmox?

offerlam

Renowned Member
Dec 30, 2012
218
0
81
Denmark
Hi all,

I have a running proxmox system but my mail server url has changed and so i need to change it in proxmox for it to send the mails the the right server... i just dont remember where this setting is in the web gui?
 
we use postix for sending email - reconfigure postfix with:

> dpkg-reconfigure postfix

or edit postfix config files directly.
 
we use postix for sending email - reconfigure postfix with:

> dpkg-reconfigure postfix

or edit postfix config files directly.

ok so what you are saying is that when i installed proxmox i was asked about mail server settings? i have no recall how i set this up in the past :)

and would i need to do this on all my proxmox nodes? I have 3 in a cluster
 
the ISO installer configures almost all automatically, including postfix.

and yes, you need to re-configure this on all your three hosts.
 
the ISO installer configures almost all automatically, including postfix.

and yes, you need to re-configure this on all your three hosts.

Thanks Tom,

Its been so long ago i had forgotten :)

I will see if i get my backup mail tomorrow :)
 
ok i did as you said.. but my mails are still noget going through..

i can see in the log that they are being sent correctly but in my spam filter the domain is missing.

they should be send to Casper@dingit.dk but are showen with only Casper and a DNS domain error because the domain is missing.

here is the mail log:

Sep 24 14:25:23 proxmox00 postfix/cleanup[703339]: 86CB4176208: message-id=<20150924122523.86CB4176208@proxmox00.ins.local>
Sep 25 02:49:00 proxmox00 postfix/pickup[130410]: 10CB317621A: uid=0 from=<root>
Sep 25 02:49:00 proxmox00 postfix/cleanup[136256]: 10CB317621A: message-id=<20150925004900.10CB317621A@proxmox00.ins.local>
Sep 25 02:49:00 proxmox00 postfix/qmgr[664276]: 10CB317621A: from=<root@proxmox00.dingit.dk>, size=155341, nrcpt=1 (queue active)
Sep 25 02:49:01 proxmox00 postfix/smtp[136258]: 10CB317621A: to=<casper@dingit.dk>, relay=mxpool2.spamgateway.comodo.com[178.33.199.69]:25, delay=1.3, delays=0.21/0.06/0.63/0.43, dsn=5.0.0, status=bounced (host mxpool2.spamgateway.comodo.com[178.33.199.69] said: 550-Sender has no A, AAAA, or MX DNS records. proxmox00.ins.local 550 proxmox00.dingit.dk (in reply to RCPT TO command))
Sep 25 02:49:01 proxmox00 postfix/cleanup[136256]: 48C7B176210: message-id=<20150925004901.48C7B176210@proxmox00.ins.local>
Sep 25 02:49:01 proxmox00 postfix/bounce[136259]: 10CB317621A: sender non-delivery notification: 48C7B176210
Sep 25 02:49:01 proxmox00 postfix/qmgr[664276]: 48C7B176210: from=<>, size=2614, nrcpt=1 (queue active)
Sep 25 02:49:01 proxmox00 postfix/qmgr[664276]: 10CB317621A: removed
Sep 25 02:49:01 proxmox00 postfix/smtp[136258]: 48C7B176210: to=<root@proxmox00.dingit.dk>, relay=none, delay=0.04, delays=0.04/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=proxmox00.dingit.dk type=AAAA: Host not found)
Sep 25 02:49:01 proxmox00 postfix/qmgr[664276]: 48C7B176210: removed

I know that my spam filter would most likely block the mail no matter what.. but i wanted to just whitelist the sender and be over with it.. but because the to field in the mail is only "casper" and not "casper@dingit.dk" i don't get to do that. The mail format is wrong so it wont let me whitelist

any suggestions
 
> 550-Sender has no A, AAAA, or MX DNS records

So either fix your DNS or configure your receiving server to accept it anyways.
 
> 550-Sender has no A, AAAA, or MX DNS records

So either fix your DNS or configure your receiving server to accept it anyways.

Hi Tom,

as i said the mail is recived by my frontend spam filter. The problem is my spam filter only sees casper not casper@dingit.dk ... and so it discards the email. It is not possible for me to whitelist because in the eyes of my spam filter the mail does not follow the propper smtp protocols because it has not @dingit.dk

but maybe its because i should configure postfix as a relay server and not a internet connection server or what ever it says in the menu?
 
your log shows:

Code:
Sep 25 02:49:01 proxmox00 postfix/smtp[136258]: 10CB317621A:  to=<casper@dingit.dk>,  relay=mxpool2.spamgateway.comodo.com[178.33.199.69]:25, delay=1.3,  delays=0.21/0.06/0.63/0.43, dsn=5.0.0, status=bounced (host  mxpool2.spamgateway.comodo.com[178.33.199.69] said: 550-Sender has no A,  AAAA, or MX DNS records.

that means, mxpool2.spamgateway.comodo.com reject the email because of: 550-Sender has no A, AAAA, or MX DNS records

=> fix your DNS.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!