Current time: 05-03-2024, 11:36 PM Hello There, Guest! (LoginRegister)


Post Reply 
Cant't send email from a same network machine
Author Message
GuS Offline
Junior Member
*

Posts: 47
Joined: Apr 2007
Reputation: 1
Post: #1
Cant't send email from a same network machine
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]
Nov 28 05:53:33 server postfix/smtpd[20329]: NOQUEUE: reject: RCPT from unknown[192.168.1.20]: 450 4.7.1 <anakin>: Helo command rejected: Host not found; from=<info@gdnet.com.ar> to=<gdiaz@gdnet.com.ar> proto=ESMTP helo=<anakin>
Nov 28 05:53:33 server postfix/smtpd[20329]: lost connection after RCPT from unknown[192.168.1.20]
Nov 28 05:53:33 server postfix/smtpd[20329]: disconnect 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.
11-28-2010 11:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Cant't send email from a same network machine
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.
11-29-2010 08:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Nomis Offline
Junior Member
*

Posts: 36
Joined: May 2007
Reputation: 0
Post: #3
RE: Cant't send email from a same network machine
(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:

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.

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.
01-26-2011 11:40 PM
Find all posts by this user Quote this message in a reply
GuS Offline
Junior Member
*

Posts: 47
Joined: Apr 2007
Reputation: 1
Post: #4
RE: Cant't send email from a same network machine
(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:

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.

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.

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.
01-27-2011 12:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Nomis Offline
Junior Member
*

Posts: 36
Joined: May 2007
Reputation: 0
Post: #5
RE: Cant't send email from a same network machine
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
01-27-2011 12:25 AM
Find all posts by this user Quote this message in a reply
GuS Offline
Junior Member
*

Posts: 47
Joined: Apr 2007
Reputation: 1
Post: #6
RE: Cant't send email from a same network machine
(01-27-2011 12:25 AM)Nomis Wrote:  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

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.

127.0.0.1 localhost.localdomain localhost
192.168.1.2 server.gdnet.com.ar server

::ffff:192.168.1.2 server.gdnet.com.ar server
::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

/etc/hostname:
Quote:server.gdnet.com.ar

At this conf. in /etc/postfix/:
Quote:...
myhostname = server.gdnet.com.ar
mydomain = localhost.localdomain
...
mynetworks = 192.168.1.0/24, 127.0.0.0/8
...

Hope that helps.

Cheers.
01-27-2011 12:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Nomis Offline
Junior Member
*

Posts: 36
Joined: May 2007
Reputation: 0
Post: #7
RE: Cant't send email from a same network machine
(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:

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

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.

127.0.0.1 localhost.localdomain localhost
192.168.1.2 server.gdnet.com.ar server

::ffff:192.168.1.2 server.gdnet.com.ar server
::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

/etc/hostname:
Quote:server.gdnet.com.ar

At this conf. in /etc/postfix/:
Quote:...
myhostname = server.gdnet.com.ar
mydomain = localhost.localdomain
...
mynetworks = 192.168.1.0/24, 127.0.0.0/8
...

Hope that helps.

Cheers.

Thanks will make the additions and see what happens
01-27-2011 12:58 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)