I’m an ex Elastix user. In their networking tab they have you put the domain name. I used to put pbx.mydomain.com, and that’s where emails would appear to come from.
Sometimes I would have to monkey around with main.cf
I am going straight FreePBX now and am confused on some things.
last night I was getting this error on vm:em in /var/log/maillog
Sep 2 22:49:06 localhost postfix/smtp: 34CE36171143: host mx00.1and1.com[220.127.116.11] said: 421 invalid sender domain ‘localhost.localdomain’ (misconfigured dns?) (in reply to RCPT TO command)
Sep 2 22:49:06 localhost postfix/smtp: 34CE36171143: to=[email protected], relay=mx01.1and1.com[18.104.22.168]:25, delay=1.5, delays=0.02/0.04/1.2/0.23, dsn=4.0.0, status=deferred (host mx01.1and1.com[22.214.171.124] said: 421 invalid sender domain ‘localhost.localdomain’ (misconfigured dns?) (in reply to RCPT TO command))
So I looked at my Elastix box’s resolv.conf
which showed this
and I put the above in my FreePBX 2.9 resolve.conf
/etc/sysconfig/network has this:
In my GUI SIP settings I have NAT checked yes; IP Configuration=Static IP, with External IP and Local Networks set properly.
In sip_nat.conf I have NAT rules the they are all commented out. (used to have to have these uncommented in Elastix, but I see the GUI does it now, and I get a big red error box if they are uncommented.)
Now I get this error in maillog:
Sep 3 08:14:43 localhost postfix/smtp: DAB74617114C: to=[email protected], relay=mx01.1and1.com[126.96.36.199]:25, delay=0.67, delays=0.02/0.01/0.64/0, dsn=4.4.2, status=deferred (lost connection with mx01.1and1.com[188.8.131.52] while performing the HELO handshake)
in /etc/hosts I have
Do not remove the following line, or various programs
that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
127.0.0.1 testpbx.mydomain.com localost localhost.localdomain
::1 localhost6.localdomain6 localhost6
So I’m trying to do two things.
- get the HELO handshake error to stop
- make vm:em work
- and related to 2, make it appear to come from my domain
- make my command line not say [email protected]