![]() |
Cant't send email from a same network machine - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: Cant't send email from a same network machine (/thread-12275.html) |
Cant't send email from a same network machine - GuS - 11-28-2010 11:43 PM Hi guys, I being using ISPcp from some time and i always forget to ask (and i think i've fixed this long ago but i cant remember how I did it :S ) The problem is when I try to send email (from a email client, for for example, from sendEmail) from a local network machine (same network of my server) i got this: Quote:Nov 28 05:53:33 server postfix/smtpd[20329]: connect from unknown[192.168.1.20] Using my public domain (gdnet.com.ar) or the private IP of my server does not work. Example of how I am sending with sendEmail command: Quote:/usr/bin/sendEmail -s mail.gdnet.com.ar -xu info@gdnet.com.ar -xp MyPasswd -f info@gdnet.com.ar -u SubjectString. -t gdiaz@gdnet.com.ar -m MessageString Is there something i must modify from Postfix or other conf to avoid this? (I think yes... but i cant remember exactly...). Thanks in advance. Cheers. RE: Cant't send email from a same network machine - kilburn - 11-29-2010 08:24 PM The problem is that your internal machine is using just the "host" part in the HELO smtp command, instead of the fully qualified domain name (host.domain.tld). There are three ways to solve this issue: 1. Setup your machines so that they use the fqdn instead of just the host part 2. Add your network to the mynetworks directive in the server's postfix main.cf file. 3. Make your clients use smtp authentication when relaying mails through the server. RE: Cant't send email from a same network machine - Nomis - 01-26-2011 11:40 PM (11-29-2010 08:24 PM)kilburn Wrote: The problem is that your internal machine is using just the "host" part in the HELO smtp command, instead of the fully qualified domain name (host.domain.tld). There are three ways to solve this issue: This is my problem too. I have finished setting up ispCP 1.0.7 OMEGA build: 20101124 on Debian Linux 5.0. I get an error : Helo command rejected: need fully-qualified hostname. How does one set up option 1. RE: Cant't send email from a same network machine - GuS - 01-27-2011 12:06 AM (01-26-2011 11:40 PM)Nomis Wrote:(11-29-2010 08:24 PM)kilburn Wrote: The problem is that your internal machine is using just the "host" part in the HELO smtp command, instead of the fully qualified domain name (host.domain.tld). There are three ways to solve this issue: That depends of your Linux distro. Example in Debian based is on /etc/hostname. Also you can add the alias to your IP in /etc/hosts. Cheers. RE: Cant't send email from a same network machine - Nomis - 01-27-2011 12:25 AM Thanks for the reply, here are the configs as they stand now: MY host name is ns.somedomain.net # 'hosts' file configuration. 127.0.0.1 ns.somedomain.net.local localhost 196.00.000.3 ns.somedomain.net ns ::ffff:196.00.000.3 ns.somedomain.net ns ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Is this config correct RE: Cant't send email from a same network machine - GuS - 01-27-2011 12:42 AM (01-27-2011 12:25 AM)Nomis Wrote: Thanks for the reply, here are the configs as they stand now: It Looks fine for me. Here is how i have in my server and worked after i did like this thread suggested: /etc/hosts: Quote:# 'hosts' file configuration. /etc/hostname: Quote:server.gdnet.com.ar At this conf. in /etc/postfix/: Quote:... Hope that helps. Cheers. RE: Cant't send email from a same network machine - Nomis - 01-27-2011 12:58 AM (01-27-2011 12:42 AM)GuS Wrote:(01-27-2011 12:25 AM)Nomis Wrote: Thanks for the reply, here are the configs as they stand now: Thanks will make the additions and see what happens |