Postfix not sending mails at all

23 posts / 0 new
Last post
#1 Thu, 11/29/2012 - 16:20
ark

Postfix not sending mails at all

Hi, well i have a problem, i have a server with virtualmin, but i have a problem i cant send mails, if i try to send via readusermail says that is send, but never go. And then i try to connect via outlook and i cant receive but i cant send mails, says that cant connect to smtp server.

I do a fresh install, then install.sh of virtualmin and then point servers to ip addres (i have 1 ip per domain).

In another post he try to use port 5525, i do the same but dont work

outlook says timeout exhausted.

I see and theres not queue, nothing in var/log/maillog and neither in my inbox or spam folder.

Any idea?

Thu, 11/29/2012 - 18:50
Locutus

Anything blocking port 25 on your server? Anything in the mail log when you try to send from "read user mail"?

Fri, 11/30/2012 - 10:14
ark
Accept  If protocol is TCP and destination port is 25 and state of connection is NEW        

firewall is working.

and now i see this in queue

2012/11/30 04:22 root@com.com root@com.com 743 bytes connect to com.com[64.30.224.118]: Connection refused

and maillog is empty, with 0B.

i see maillog in var/log/maillog but not sure if still it is (i see this in another software with just webmin and i do a yum install of postfix)

Fri, 11/30/2012 - 10:55
Locutus

I'm sorry, I can't really follow you here. You'd need to explain your problem again, in detail, from the start, what exactly you did and tried where, and what errors you see in the logs.

Fri, 11/30/2012 - 11:08
ark

ok, i have a fresh install of centos with webmin. So i stop webmin and install virtualmin via the file install.sh.

I do a virtualserver, with a virtual ip. this works. Ok then i try to send mails via read user mail module, but never deliver. The maillog in var/log/maillog is empty. in queue (in postfix module) i never see my email. and i dont get any error or bounce. mxrecords also is pointing to my server.

Fri, 11/30/2012 - 11:25
Locutus

Hm, any number of errors could be responsible for that. Too much to list or guess here. I could offer to log on to your system and take a look.

Aside from that, you said you had Webmin already on the box when you installed Virtualmin. Best practice is to let it install from the script, through it's possible that it doesn't make a difference. When you go to "Webmin / Webmin / Webmin Configuration / Webmin Themes", which themes do you get in the Current Theme list?

Fri, 11/30/2012 - 11:31
ark

oh thx.will be great.

have standar and virtualmin framed theme and virtualmin mobile theme

Mon, 12/03/2012 - 17:42
andreychek

It sounds like things aren't working properly when Postfix is setup to use port 2525. I might recommend keeping it on port 25 to troubleshoot the issues you're seeing.

The "com.com" can occur when there's a problem with the hostname you're using.

You'd want to make sure your hostname is in FQDN format... meaning "host.domain.tld".

You'd also want to make sure your hostname appears in /etc/hosts, and on the mydestination line in /etc/postfix/main.cf.

If that doesn't help, you may want to post the output of the commands "postconf -n" and "hostname".

-Eric

Wed, 12/05/2012 - 09:15
ark

well i was triying and now all mails get in queue. i restart postfix and now just keep in queue. but theres not anymore the com.com problem

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
daemon_timeout = 1800s
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
ipc_timeout = 360s
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain, host.mercadeoeficaz-cr.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sender_bcc_maps = hash:/etc/postfix/bcc
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination permit_inet_interfaces
smtpd_sasl_auth_enable = yes
smtpd_tls_security_level = encrypt
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

hostname host.mercadeoeficaz-cr.com

Wed, 12/05/2012 - 10:44
andreychek

Howdy,

What message(s) are you seeing in the mail logs when the messages go into the queue?

Also, what does this command output:

mailq | tail -20

Wed, 12/05/2012 - 11:18
ark

ok this will be difficult to explain. In server i have like 4 diferentes ip, a dns (mercadeoeficazcr.com) is poiting to one of the ips 190.120.227.189.

The main ip of server is 190.120.227.177 (mercadeoeficaz-cr.com)

now i login to 190.120.227.189:10000, read user mail, send mail to andreileonsalas@gmail.com but i get this(is sending via main ip not the ip that i put when i create a virtual server)

well theres not anymore queue (was of main ip not virtual server) so theres no output from mailq | tail -20

Delivered-To: andreileonsalas@gmail.com Received: by 10.66.192.97 with SMTP id hf1csp30218pac; Wed, 5 Dec 2012 08:54:50 -0800 (PST) Received: by 10.204.147.216 with SMTP id m24mr1258366bkv.63.1354726489142; Wed, 05 Dec 2012 08:54:49 -0800 (PST) Return-Path: mercadeoeficazcr@mercadeoeficazcr.com Received: from host.mercadeoeficaz-cr.com (mercadeoeficaz-cr.com. [190.120.227.177]) by mx.google.com with ESMTP id 6si8597650bka.113.2012.12.05.08.54.47; Wed, 05 Dec 2012 08:54:48 -0800 (PST) Received-SPF: neutral (google.com: 190.120.227.177 is neither permitted nor denied by domain of mercadeoeficazcr@mercadeoeficazcr.com) client-ip=190.120.227.177; Authentication-Results: mx.google.com; spf=neutral (google.com: 190.120.227.177 is neither permitted nor denied by domain of mercadeoeficazcr@mercadeoeficazcr.com) smtp.mail=mercadeoeficazcr@mercadeoeficazcr.com Received: by host.mercadeoeficaz-cr.com (Postfix, from userid 0) id 95ED44006D; Wed, 5 Dec 2012 11:53:52 -0500 (EST) From: mercadeoeficazcr@mercadeoeficazcr.com Subject: a To: andreileonsalas@gmail.com Message-Id: 1354726432.18101@mercadeoeficazcr.com X-Originating-IP: 186.176.50.84 X-Mailer: Webmin 1.610 Date: Wed, 05 Dec 2012 11:53:52 -0500 (EST) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bound1354726432"

This is a multi-part message in MIME format.

--bound1354726432 Content-Type: text/plain Content-Transfer-Encoding: 7bit

aaa

--bound1354726432--

now im very lost, at least going out but is not working because i want ot have a especific ip, completly diferent to the other server, and i use that dns because im testing before buy a new one

Fri, 12/07/2012 - 14:33
ark

so i should do vps to do this? or if i buy virtualmin pro this will work? i dont know really

Fri, 12/07/2012 - 15:20
andreychek

Email should work fine in both Virtualmin Pro and GPL. You don't need Virtualmin Pro for email to work.

I didn't see an error in the email that you pasted in above, and you said that the email queue no longer had email in it.

So I'm not sure I understand what problem you're having at the moment. What is it that's not working? And what errors are you seeing?

Also, are any errors showing up in your mail logs?

-Eric

Fri, 12/07/2012 - 15:24
ark

the problem is that i have 4 ips but go out only from the main ip. but when i send to domain (with a secondary ip) it sucefully delivery, but when i send mail always is from main ip. dont know if i get explain. i want that out mails go out for diferents ip.

Fri, 12/07/2012 - 16:30
andreychek

Postfix, by default, sends out email using the primary IP of the server. That's usually the IP associated with the "eth0" interface.

Recently, Postfix began supporting another option, that allows email to be sent using an alternate IP.

That's only supported in Postfix 2.7 and newer -- but if you have that, you can use the following instructions to send email using an alternate IP:

https://www.virtualmin.com/documentation/email/dependent

Fri, 12/07/2012 - 17:38
ark

oh thx, im already working to have centos 6.0 in order to have everything up date. I will work this weekend on this and monday i will write again

Fri, 12/14/2012 - 14:33
ark

Ok i install like you tell me centos 6 (i tell to my provider please install centos 6).

but now i cant install virtualmin like i always do it in centos 5

now i says (logfile says the same)

INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay ...in progress, please wait... |Error: Package: 1:httpd-manual-2.2.15-15.el6.vm.noarch (virtualmin) Requires: httpd = 1:2.2.15-15.el6.vm Removing: httpd-2.2.15-15.el6.centos.1.x86_64 (@base) httpd = 2.2.15-15.el6.centos.1 Updated By: 1:httpd-2.2.15-15.el6.vm.1.x86_64 (virtualmin) httpd = 1:2.2.15-15.el6.vm.1 Available: httpd-2.2.15-15.el6.i386 (virtualmin) httpd = 2.2.15-15.el6 Available: 1:httpd-2.2.15-5.el6.vm.x86_64 (virtualmin) httpd = 1:2.2.15-5.el6.vm Available: 1:httpd-2.2.15-9.el6.2.vm.x86_64 (virtualmin) httpd = 1:2.2.15-9.el6.2.vm Available: 1:httpd-2.2.15-15.el6.x86_64 (virtualmin) httpd = 1:2.2.15-15.el6 Available: 1:httpd-2.2.15-15.el6.vm.x86_64 (virtualmin) httpd = 1:2.2.15-15.el6.vm /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: --> Processing Dependency: httpd = 1:2.2.15-15.el6.vm for package: 1:httpd-manual-2.2.15-15.el6.vm.noarch ---> Package keyutils-libs-devel.x86_64 0:1.4-4.el6 will be installed ---> Package libcom_err-devel.x86_64 0:1.41.12-12.el6 will be installed ---> Package libproxy-bin.x86_64 0:0.3.0-3.el6_3 will be installed ---> Package libproxy-python.x86_64 0:0.3.0-3.el6_3 will be installed ---> Package libselinux-devel.x86_64 0:2.0.94-5.3.el6 will be installed --> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-5.3.el6.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-5.3.el6.x86_64 --> Running transaction check ---> Package httpd-manual.noarch 1:2.2.15-15.el6.vm will be an update --> Processing Dependency: httpd = 1:2.2.15-15.el6.vm for package: 1:httpd-manual-2.2.15-15.el6.vm.noarch ---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed --> Finished Dependency Resolution You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

FATAL - Fatal Error Occurred: Something went wrong during installation: 0 FATAL - Cannot continue installation. FATAL - Attempting to remove virtualmin repository configuration, so the installation can be FATAL - re-attempted after any problems have been resolved. FATAL - Removing temporary directory and files. FATAL - If you are unsure of what went wrong, you may wish to review the log FATAL - in /root/virtualmin-install.log

Fri, 12/14/2012 - 14:42
ark

btw i manually do the yum instruction and i get this Setting up Install Process Package 32:bind-9.8.2-0.10.rc1.el6_3.6.x86_64 already installed and latest version Package 32:bind-utils-9.8.2-0.10.rc1.el6_3.6.x86_64 already installed and latest version Package 32:bind-9.8.2-0.10.rc1.el6_3.6.x86_64 already installed and latest version Package httpd-2.2.15-15.el6.centos.1.x86_64 already installed and latest version Package 2:postfix-2.6.6-2.2.el6_1.x86_64 already installed and latest version Package spamassassin-3.3.1-2.el6.x86_64 already installed and latest version Package procmail-3.22-25.1.el6.x86_64 already installed and latest version Package perl-DBD-Pg-2.15.1-4.el6_3.x86_64 already installed and latest version Package perl-DBD-MySQL-4.013-3.el6.x86_64 already installed and latest version Package 1:quota-3.17-16.el6.x86_64 already installed and latest version Package iptables-1.4.7-5.1.el6_2.x86_64 already installed and latest version Package openssl-1.0.0-25.el6_3.1.x86_64 already installed and latest version Package python-2.6.6-29.el6_3.3.x86_64 already installed and latest version Package 3:mailman-2.1.12-17.el6.x86_64 already installed and latest version Package subversion-1.6.11-7.el6.x86_64 already installed and latest version Package mysql-5.1.66-2.el6_3.x86_64 already installed and latest version Package mysql-server-5.1.66-2.el6_3.x86_64 already installed and latest version Package mysql-devel-5.1.66-2.el6_3.x86_64 already installed and latest version Package postgresql-8.4.13-1.el6_3.x86_64 already installed and latest version Package postgresql-server-8.4.13-1.el6_3.x86_64 already installed and latest version No package rh-postgresql available. No package rh-postgresql-server available. Package logrotate-3.7.8-15.el6.x86_64 already installed and latest version Package webalizer-2.21_02-3.3.el6.x86_64 already installed and latest version Package php-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-xml-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-gd-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-imap-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-mysql-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-odbc-5.3.3-14.el6_3.x86_64 already installed and latest version Package 1:php-pear-1.9.4-4.el6.noarch already installed and latest version Package php-pgsql-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-snmp-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-xmlrpc-5.3.3-14.el6_3.x86_64 already installed and latest version Package php-mbstring-5.3.3-14.el6_3.x86_64 already installed and latest version Package mod_perl-2.0.4-10.el6.x86_64 already installed and latest version No package mod_python available. Package cyrus-sasl-2.1.23-13.el6_3.1.x86_64 already installed and latest version Package 1:dovecot-2.0.9-2.el6_1.1.x86_64 already installed and latest version Package spamassassin-3.3.1-2.el6.x86_64 already installed and latest version Package mod_dav_svn-1.6.11-7.el6.x86_64 already installed and latest version Package cyrus-sasl-gssapi-2.1.23-13.el6_3.1.x86_64 already installed and latest version Package 1:mod_ssl-2.2.15-15.el6.centos.1.x86_64 already installed and latest version Package ruby-1.8.7.352-7.el6_2.x86_64 already installed and latest version Package ruby-devel-1.8.7.352-7.el6_2.x86_64 already installed and latest version Package rubygems-1.3.7-1.el6.noarch already installed and latest version Package perl-XML-Simple-2.18-6.el6.noarch already installed and latest version Package perl-Crypt-SSLeay-0.57-16.el6.x86_64 already installed and latest version Nothing to do

any idea, that packages are the bad thing?

Fri, 12/14/2012 - 15:24
ark

i do rpm -e httpd-manual and then i could install, but i cant access via port 10000.

in shh i put service webmin status webmin is running

so i fdont know if is a problem with hostname or something or if the install was not good.

also usermin says already installed.

Fri, 12/14/2012 - 15:56
andreychek

Howdy,

Try accessing your server using the IP address, something like this:

https://x.y.z.q:10000

If that doesn't work, what error do you get?

-Eric

Wed, 12/19/2012 - 09:10
ark

now its work, was a problem with my server provider.

but now i have this problem:

i have installed postfix Postfix version 2.9.5 i have webmin 1.610 i have virtualmin 3.97.gpl GPL

and do everything here https://www.virtualmin.com/documentation/email/dependent

but now theres no option

[–]Server Configuration Change Domain Name Change IP Address Clone Virtual Server DNS Options DNS Records Edit Proxy Website Move Virtual Server PHP Versions Website Options Website Redirects

btw i install postfix 2.9 after virtualmin install, i upgrade the anterior version. and dont know if i have to "refresh modules" like i do in webmin.

Also im not sure about this: You can also enable this feature using the API command modify-mail , with the --outgoing-ip flag.

Wed, 12/19/2012 - 10:18
andreychek

Howdy,

Well, this thread is getting a bit long -- you may want to start a new one for a new topic :-)

However, you'd likely need to complete all the steps listed in the "Initial Configuration" section of the documentation you linked to above, before that option will become visible.

If that doesn't help, start up a new thread, and we'll help you over there :-)

Thanks!

-Eric

Thu, 12/20/2012 - 14:57
ark

haha yeah, but now looks like is working, the other problem was about canonical, i search and see another post of you and worked.

Mail server Postfix is installed and configured.

Postfix is configured to support per-domain outgoing IP addresses.

Thx :). now im waiting to this finish but keeps in apache installation so i wait and if not work in 30 minutes i write again, but if not is just working, really thx andrey (my name is andrei btw hehe)

Topic locked