View previous topic :: View next topic |
Author |
Message |
mlk Junior Member
Joined: 09 Jan 2011 Posts: 3
|
Posted: Sun Jan 09, 2011 3:16 pm Post subject: Postfix question |
|
|
Hello all!
Have been playing around with sms and I'm finding it a great distro!
I've configured most of it, but I've hit some problems with Postfix.
The problem is understanding how to get the emails through to my mail server (emails going out are relayed via my isp's mail server and are fine).
I have setup dyndns - created sms.dyndns.com (via dyndns FREE) and have forwarded ports 80 and 25 at this stage to my sms box (sms.local).
I can telnet to sms.dyndns.com 25 and I can confirm it connects.
I've registered an info domain, say mysite.info, so if I created a user say bob@sms.local, and I email bob@mysite.info (via an external work email) it should ultimately reach bob@sms.local - and this is where things are failing.
In mysite.info configuration am I right in that I should do the following:
Change MX to point to sms.dyndns.com so if I have the format as 'Priority Host Point to' it should be '0 @ sms.dyndns.com' ?
The A record is labelled as '@ 65.xxx.xxx.xxx' in case it helps.
At present I have a CNAME 'mail' that points to 'sms.dyndns.com'. This is where I hit a dead end because I am not getting any connection attempts via maillog or my firewall to the sms.local server (ip. 192.168.123.80).
My firewall is just a smoothwall box one network card (192.168.1.2) to the modem, other network card (192.168.123.1) as a dhcp server for ranges 192.168.123.80 -> 84.
If anyone can just pinpoint where I have gone wrong in the process it would be muchly appreciated!
|
|
Back to top |
|
internetonly Junior Member
Joined: 25 Jul 2010 Posts: 4
|
Posted: Sun Jan 09, 2011 4:18 pm Post subject: |
|
|
- Firstly, for DNS debugging, go to http://dnsstuff.fastnext.com/ and in DomainTools / DNSreport section, input your mysite.info domain to begin a DNS analysis... (DNS parent, NS, SOA, MX, MAIL, WWW).
- Secondly, come back here, to this forum, to report your next problem...
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Jan 09, 2011 9:11 pm Post subject: |
|
|
At first try to set your sms box to mysite.info instead of sms.local since mailserver authenticate users@hostname.domain e.g. (hostname -f).
As far as I know dyndns.org don't offer MX service in free package.
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
mlk Junior Member
Joined: 09 Jan 2011 Posts: 3
|
Posted: Mon Jan 10, 2011 1:22 pm Post subject: |
|
|
Hi all,
I've attached some files to see if anyone can guide me towards the correct settings.
They're all just images of the settings, hopefully it should be self explanatory!
I am aware I'm missing a backup mx listing in the modified.jpg just so you know
Many thanks!
Description: |
|
Filesize: |
60.34 KB |
Viewed: |
31902 Time(s) |
|
Description: |
|
Filesize: |
51.88 KB |
Viewed: |
31902 Time(s) |
|
Description: |
|
Filesize: |
60.99 KB |
Viewed: |
31902 Time(s) |
|
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Mon Jan 10, 2011 8:38 pm Post subject: |
|
|
You need an MX record in order your mail to work via internet.
if you do a
dig mysite.info mx
you got no answer, so the mail servers don't know where to send the message, unless you force them e.g. through a transport map for postfix,
But it may worked even without an MX record.
When you send an email to your sms server what /var/log/maillog says? does it connect?
Another issue you may have is, that many ISPs block dynamic addresses from sending mails.
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
mlk Junior Member
Joined: 09 Jan 2011 Posts: 3
|
Posted: Tue Jan 11, 2011 10:25 am Post subject: |
|
|
gerasimos_h wrote: |
When you send an email to your sms server what /var/log/maillog says? does it connect?
gerasimos_h |
I have no problems sending mail out, got problems trying to receive it. Maillog confirms the emails are ok going out. I can telnet to the mail server, so if I create a cname 'test' and point it to 'sms.dynds-*******.com' at port 25, it will connect to the mail server and maillog will show the connection.
It could be a dynDNS, but from what I understand, given I have an info domain, I should be able adjust the settings on it, and point it all traffic through my dydnDNS address (which works for http), but it just doesn't work for mail.
Anyway, I'm still working on it!
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Tue Jan 11, 2011 1:50 pm Post subject: |
|
|
When you try to receive what /var/log/maillog says?
Send an email from your office and look the logs.
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|