Hi,
The notifications only works if I set ip address of the smtp server. If i use the host name it fails like below
suspended: Host or domain name not found. Name service error for name=smtp.aaa.com type=MX: Host not found, try again)
Any ideas?
Hi,
The notifications only works if I set ip address of the smtp server. If i use the host name it fails like below
suspended: Host or domain name not found. Name service error for name=smtp.aaa.com type=MX: Host not found, try again)
Any ideas?
Do you have a dns server set in network settings?
No, I don't but
root@openmediavault:~# cat /etc/resolv.conf
search local
nameserver 192.168.1.1
So my router is there in the resolv
It is a dns issue. Can you ping a different domain? ping -c 2 www.google.com
yes...I can ping host names.
I can even ping the host name of the smtp server without problem.
And traceroute goes through without problems too. All working with host names.
Just postfix won't work with the name but only with the ip
Maybe it is giving a inaccurate error. Does you ISP block the port you are using? Mine does (charter).
no...the port is not blocked by ISP...if it was xxx.xxx.xxx.xxx:547 would fail the same as smtp.aaa.com:547
I think it's a postfix config problem somehow
If it was a config issue, wouldn't it affect all OMV systems ability to resolve a domain name? The only postfix config file that OMV writes is /etc/postfix/main.cf. Here is mine that works well. Compare it to yours.
root@server:/etc/postfix# cat main.cf
mydestination =
inet_interfaces = loopback-only
relayhost = smtp.charter.net:25
sender_canonical_maps = hash:/etc/postfix/sender_canonical
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
smtp_generic_maps = hash:/etc/postfix/generic
smtp_header_checks = regexp:/etc/postfix/smtp_header_checks
I think I got a step futher
root@openmediavault:~# host -t mx gmail.com
gmail.com mail is handled by 40 alt4.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 30 alt3.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 5 gmail-smtp-in.l.google.com.
gmail.com mail is handled by 10 alt1.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 20 alt2.gmail-smtp-in.l.google.com.
root@openmediavault:~#
but the same for my smtp server gives :
root@openmediavault:~# host -t mx smtp.aaa.com
smtp.aaa.com has no MX record
root@openmediavault:~#
Did you just setup your mx record?
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!