From: Basanta shrestha on
Now that I know it works can you tell me where I went wrong ? I do not
need to do anything in "Mail Routing" Section Right ?
-Basanta


On Mon, Jun 28, 2010 at 2:13 PM, Mihira Fernando <mihiratheace(a)gmail.com> wrote:
> On 06/28/2010 01:16 PM, Stan Hoeppner wrote:
>>
>> Mihira Fernando put forth on 6/28/2010 2:20 AM:
>>
>>
>>>
>>> you can use the dyndns.org free account for email by using the dyndns
>>> FQDN allocated for the server in  your domain's MX entry.
>>>
>>> May not be the perfect way but it works.
>>>
>>
>> What domain MX entry?
>>
>> Why would someone pay for DNS hosting for a single domain, and a domain
>> registration, when the combined cost of both may likely be about the same
>> as
>> just paying for the DynDNS mail forwarding service?  On top of that, by
>> using
>> your suggestion, one would have to use a CNAME for the MX, no?.  Ask
>> Wietse
>> about using CNAME for MX.
>>
>>
>
> Hey, I told you its not perfect.
> Also its not CNAME that you use. Its the A record.
> DynDNS client takes care of updating the IP for it.
> Besides, most domain registrars provide DNS hosting for the same price so
> there's only the cost of registration.
>
> Mihira.
>
>

From: mouss on
Basanta shrestha a �crit :
> Dear All,
>
> CentOS 5.2
>
> Followed http://wiki.centos.org/HowTos/postfix and installed
> postfix dovecot system-switch-mail system-switch-mail-gnome
>

please note that centos docs are under centos responsibility. here, the
docs are on www.postfix.org. anything else is unsupported (aka: use at
your own risk).

> Local delivery and local receipt works ok. Couldn't send email to
> external mail using 127.0.0.1 as smtp server.

I don't understand this. do you mean you can't send mail to external
domains when you use a local (127.0.0.1) postfix? if so, show the error
message and logs.

>
> Now trying to make my computer a full fledged mail server. I am behind ADSL NAT
>
> got a dyndns address lal.homelinux.org.
> In adsl router, configured the above address, port forward tcp port
> 110 to 192.168.0.x ( x being ip address of my computer)
> can resolve lal.homelinux.org to ADSL WAN IP address.

110? that's not smtp. please take the time to learn about smtp, pop3 and
imap. these are completely different things. postfix only implements smtp.

>
> hostname of the computer set to lal.homelinux.org
>
> /etc/postfix/main.cf
>
> myhostname = lal.homelinux.org
> mydomain = homelinux.org
> myorigin = $mydomain
> inet_interfaces = all
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
> mynetworks = 192.168.0.0/24, 127.0.0.0/8
> relay_domains =
> home_mailbox = Maildir/
>

I see nothing wrong here.

>
> nmaping lal.homelinux.org
>
> 22/tcp open ssh
> 25/tcp open smtp
> 110/tcp open pop3
> 111/tcp open rpcbind
> 143/tcp open imap
> 735/tcp open unknown
> 993/tcp open imaps
> 995/tcp open pop3s
>
> Can't get to send mail outside the system nor receive from external
> mail like gmail.com using smtp/pop3 as lal.homelinux.org
>

in this list, the protocol is smtp. as long as you have problems with
other protocols, we can't help you. since pop3 is easier, you should
find a solution for that first. maybe it's your firewall(s) or your ISP
filtering.

anyway, if you think you have a postfix related problem (I doubt that.
your config looks correct), then please show relevant logs.

From: Stan Hoeppner on
Noel Jones put forth on 6/28/2010 6:56 AM:

> Don't confuse mail routing (mail directed from the internet to your
> server via DNS records) with mail hosting (mail accepted somewhere and
> forwarded/proxied to your server). Dyndns provides mail routing for
> free; their mail hosting service is a paid service.

I haven't confused the two at all Noel. It appears they've changed their free
service since I looked into it 5 years ago. IIRC back then they didn't offer
free mail routing to a subdomain, it was an extra charge.

--
Stan

From: Stan Hoeppner on
Mihira Fernando put forth on 6/28/2010 3:28 AM:

> Also its not CNAME that you use. Its the A record.

My mistake. You can actually point the MX for another domain at the dyndns
fqdn. I got my thought process screwed up due to all the goofiness of how
DynDNS does some things, and the specific scenario being discussed.

> DynDNS client takes care of updating the IP for it.

Heh, yeah, I know exactly what dynamic dns is. I used it for quite some time
myself.

> Besides, most domain registrars provide DNS hosting for the same price
> so there's only the cost of registration.

Thanks for the tip. I've not registered a domain in quite a long time. Back
then (most?) registrars didn't offer free DNS hosting with registration.

--
Stan

From: Basanta shrestha on
On Tue, Jun 29, 2010 at 4:39 AM, mouss <mouss(a)ml.netoyen.net> wrote:
> Basanta shrestha a écrit :
>> Dear All,
>>
>> CentOS 5.2
>>
>> Followed http://wiki.centos.org/HowTos/postfix and installed
>> postfix dovecot system-switch-mail system-switch-mail-gnome
>>
>
> please note that centos docs are under centos responsibility. here, the
> docs are on www.postfix.org. anything else is unsupported (aka: use at
> your own risk).
>
>> Local delivery and local receipt works ok. Couldn't send email to
>> external mail using 127.0.0.1 as smtp server.
>
> I don't understand this. do you mean you can't send mail to external
> domains when you use a local (127.0.0.1) postfix? if so, show the error
> message and logs.
>
Sorry, can't do it now. I am not home. But will see the logs and send it.

>>
>> Now trying to make my computer a full fledged mail server. I am behind ADSL NAT
>>
>> got a dyndns address lal.homelinux.org.
>> In adsl router, configured the above address, port forward tcp port
>> 110  to 192.168.0.x ( x being ip address of my computer)
>> can resolve lal.homelinux.org to ADSL WAN IP address.
>
> 110? that's not smtp. please take the time to learn about smtp, pop3 and
> imap. these are completely different things. postfix only implements smtp..

You'd better gone through the very first mail on the thread before you
gave your valuable time and suggestions. That I am also using dovecot
for pop3 and I am trying to port forward the request comming to the
pop3 (110) on my router (only public ip) to the mail server which is
behind my ADSL NAT.


>
>>
>> hostname of the computer set to lal.homelinux.org
>>
>> /etc/postfix/main.cf
>>
>> myhostname = lal.homelinux.org
>> mydomain = homelinux.org
>> myorigin = $mydomain
>> inet_interfaces = all
>> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
>> mynetworks = 192.168.0.0/24, 127.0.0.0/8
>> relay_domains =
>> home_mailbox = Maildir/
>>
>
> I see nothing wrong here.
>
>>
>> nmaping lal.homelinux.org
>>
>> 22/tcp  open  ssh
>> 25/tcp  open  smtp
>> 110/tcp open  pop3
>> 111/tcp open  rpcbind
>> 143/tcp open  imap
>> 735/tcp open  unknown
>> 993/tcp open  imaps
>> 995/tcp open  pop3s
>>
>> Can't get to send mail outside the system nor receive from external
>> mail like gmail.com using smtp/pop3 as lal.homelinux.org
>>
>
> in this list, the protocol is smtp. as long as you have problems with
> other protocols, we can't help you. since pop3 is easier, you should
> find a solution for that first. maybe it's your firewall(s) or your ISP
> filtering.
>
> anyway, if you think you have a postfix related problem (I doubt that.
> your config looks correct), then please show relevant logs.
>
>

I seem to have found the problem. the port 110 is not seen from
outside world. issue with adsl router I guess.

-basanta