elho ?Invalid command

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
vahankh
Posts: 21
Joined: 2014/08/28 16:49:17

Re: elho ?Invalid command

Post by vahankh » 2014/08/28 20:09:32

avij wrote:OK, I tried telnetting to your mail server. There's something wrong, because your mail server does not output the greeting, and it does not respond to "ehlo <myhostname>" at all. Please check the logs to see if they have any clues about this. I don't have a C5 Postfix installation handy, but see /var/log/maillog and /var/log/messages.

Also, please don't top post on the forums.
I have four maillog files:

maillog.1
maillog.2
maillog.3
maillog.4

2 of them are empty others doesn't contain any error.

/var/log/messages is also without any error. All logs in this file are related to yum.

I'm sorry guys. I'm almost completely new to unix. I'm trying to learn on my VPS hosting.

vahankh
Posts: 21
Joined: 2014/08/28 16:49:17

Re: elho ?Invalid command

Post by vahankh » 2014/08/28 20:23:58

Just wondered if it can be related to dovecot 2.2.10? CentOS 5 rpm isntalls by default 1.0.7 which didn't work for me.

User avatar
TrevorH
Forum Moderator
Posts: 29903
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: elho ?Invalid command

Post by TrevorH » 2014/08/31 00:18:22

No, dovecot has nothing to do with port 25, that's used by an MTA and dovecot is not an MTA.

Are you sure you have no iptables rules that stop outbound traffic or something?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

vahankh
Posts: 21
Joined: 2014/08/28 16:49:17

Re: elho ?Invalid command

Post by vahankh » 2014/09/02 21:26:41

TrevorH wrote:No, dovecot has nothing to do with port 25, that's used by an MTA and dovecot is not an MTA.

Are you sure you have no iptables rules that stop outbound traffic or something?
Hi Trevor,

I don't have idea how iptables works. So here is the content of it

Code: Select all

# Load additional iptables modules (nat helpers)
#   Default: -none-
# Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which
# are loaded after the firewall rules are applied. Options for the helpers are
# stored in /etc/modprobe.conf.
IPTABLES_MODULES=""

# Unload modules on restart and stop
#   Value: yes|no,  default: yes
# This option has to be 'yes' to get to a sane state for a firewall
# restart or stop. Only set to 'no' if there are problems unloading netfilter
# modules.
IPTABLES_MODULES_UNLOAD="yes"

# Save current firewall rules on stop.
#   Value: yes|no,  default: no
# Saves all firewall rules to /etc/sysconfig/iptables if firewall gets stopped
# (e.g. on system shutdown).
IPTABLES_SAVE_ON_STOP="no"

# Save current firewall rules on restart.
#   Value: yes|no,  default: no
# Saves all firewall rules to /etc/sysconfig/iptables if firewall gets
# restarted.
IPTABLES_SAVE_ON_RESTART="no"

# Save (and restore) rule and chain counter.
#   Value: yes|no,  default: no
# Save counters for rules and chains to /etc/sysconfig/iptables if
# 'service iptables save' is called or on stop or restart if SAVE_ON_STOP or
# SAVE_ON_RESTART is enabled.
IPTABLES_SAVE_COUNTER="no"

# Numeric status output
#   Value: yes|no,  default: yes
# Print IP addresses and port numbers in numeric format in the status output.
IPTABLES_STATUS_NUMERIC="yes"

# Verbose status output
#   Value: yes|no,  default: yes
# Print info about the number of packets and bytes plus the "input-" and
# "outputdevice" in the status output.
IPTABLES_STATUS_VERBOSE="no"

# Status output with numbered lines
#   Value: yes|no,  default: yes
# Print a counter/number for every rule in the status output.
IPTABLES_STATUS_LINENUMBERS="yes"

# Reload sysctl settings on start and restart
#   Default: -none-
# Space separated list of sysctl items which are to be reloaded on start.
# List items will be matched by fgrep.
#IPTABLES_SYSCTL_LOAD_LIST=".ip_conntrack .bridge-nf"

vahankh
Posts: 21
Joined: 2014/08/28 16:49:17

Re: elho ?Invalid command

Post by vahankh » 2014/09/03 15:37:00

I have noticed following errors in my maillog. Can you please help me to understand this?

Code: Select all

Sep  3 19:31:40 vps postfix/smtpd[5512]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Sep  3 19:31:40 vps postfix/cleanup[5509]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Sep  3 19:31:40 vps postfix/smtpd[5512]: warning: private/proxymap socket: service dict_proxy_open: Success
Sep  3 19:31:40 vps postfix/cleanup[5509]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Sep  3 19:31:40 vps postfix/master[5505]: warning: process /usr/libexec/postfix/proxymap pid 10871 exit status 1
Sep  3 19:31:40 vps postfix/master[5505]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Sep  3 19:32:40 vps postfix/proxymap[10872]: fatal: /etc/postfix/mysql-virtual_forwardings.cf: bad string length 0 < 1: dbname =
Sep  3 19:32:41 vps postfix/smtpd[5512]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Sep  3 19:32:41 vps postfix/cleanup[5509]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Sep  3 19:32:41 vps postfix/cleanup[5509]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Sep  3 19:32:41 vps postfix/smtpd[5512]: warning: private/proxymap socket: service dict_proxy_open: Success
Sep  3 19:32:41 vps postfix/master[5505]: warning: process /usr/libexec/postfix/proxymap pid 10872 exit status 1
Sep  3 19:32:41 vps postfix/master[5505]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Sep  3 19:33:41 vps postfix/proxymap[10873]: fatal: /etc/postfix/mysql-virtual_forwardings.cf: bad string length 0 < 1: dbname =
Sep  3 19:33:42 vps postfix/smtpd[5512]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Sep  3 19:33:42 vps postfix/cleanup[5509]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Sep  3 19:33:42 vps postfix/smtpd[5512]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Sep  3 19:33:42 vps postfix/cleanup[5509]: warning: private/proxymap socket: service dict_proxy_open: Success
Sep  3 19:33:42 vps postfix/master[5505]: warning: process /usr/libexec/postfix/proxymap pid 10873 exit status 1
Sep  3 19:33:42 vps postfix/master[5505]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling

vahankh
Posts: 21
Joined: 2014/08/28 16:49:17

Re: elho ?Invalid command

Post by vahankh » 2014/09/06 01:34:37

Just want to update. that my problem has been solved. It was some stupid mistake in several *.cf files. I've copied instruction examples which placed everything into one line. So I've fixed that, and I keep looking into maillog file and just fixing simple configuration problems. And now I have the greeting message.

Post Reply

Return to “CentOS 5 - Server Support”