PDA

View Full Version : Using KB email in your site login



SpankMe
8th November 2006, 21:53
I dealing with a problem where the KB server cannot send email to KB gmail accounts. So if you use your KB email in your site login, you should change it to another email address until I can get this problem sorted.

Also are there any postfix experts here?

xwhatsit
8th November 2006, 22:39
It was working for me before, is it a new problem?

Postfix is horrible shit haha. The most arcane config files I've ever seen. Good luck with that ^_~...

TerminalAddict
9th November 2006, 08:06
ya man .. I'm a postfix expert :)

in /etc/postfix/main.cf
change myhostname to something NOT kiwibiker
I would suggest changing it to 216-237-127-130.infortech.net (your actual host)
also change mydomain to infortech.net
if you have any virtual domains set up that point kb domain remove them

if you have 216.237.127.130 kiwibiker.co.nz in /etc/hosts remove it

restart postfix.

what's happening is postfix is configured as the domain kiwibiker.co.nz
confirmed:


paulw@marieleader:~$ telnet 216.237.127.130 25
Trying 216.237.127.130...
Connected to 216-237-127-130.infortech.net (216.237.127.130).
Escape character is '^]'.
220 kiwibiker.co.nz ESMTP Postfix


so when it acts as a local MTA it believes anything addressed to kiwibiker.co.nz is local, so passes it to lmtp rather than to smtp.
if you change the main.cf, and remove entries in /etc/hosts then when it recieves mail addressed to kb, rather than think it is local and delivering via lmtp, it will do a dns resolve on the MX record.

You can confirm its final ddestination by doing an MX query from the cli.
dig kiwibiker.co.nz MX

I'd start by doing
grep -i /etc/postfix/* kiwibiker
and see what files pop up ... you may have a "localdomains" config that needs to be changed too.

Once all is good, you should telnet to port 25 to ensure it doesn't respond with a kiwibiker address.

chur ;)

SpankMe
9th November 2006, 11:28
Thanks TerminalAddict. :niceone: All working fine now.



Postfix is horrible shit haha. The most arcane config files I've ever seen. Good luck with that ^_~...

You're thinking of sendmail.

TerminalAddict
9th November 2006, 12:13
no problem ... and yes he's thinking of sendmail :D

ooh btw: you could probably close port 25 to the world now that you've moved the MX record to googlemail

no point having port 25 open, and allowing spammers to attempt intrusion if its not needed :niceone:

xwhatsit
9th November 2006, 23:32
Yes I am thinking of sendmail :-/.

Carry on.