I really hope this is the correct forum if not I send my apologize before hand. Im using Ubuntu 12.04.3 LTS with Vitualmin 4.04 gpl. A fresh instalation using the automatization tool from the website.
Everytime that I open the system window the postfix mail server item shows a cross that the sevice is down, but when I activated it runs ok but when I click refresh system information again shows the cross. I have not been able to send email at all
In a fresh Virtualmin installation on Ubuntu 12, Postfix should work okay out of the box. Maybe you’re experiencing a memory issue or similar. Is this a VPS or a physical host? If VPS, is it a Virtuozzo system? How much memory do you have?
What output do you get for this in a shell: (please enclose screen listings in [code][/code] tags)
service postfix restart
netstat -tpln | grep :25
ps aux | grep postfix
In addition to Locutus’s excellent thoughts, you may also want to take a look in your mail logs, in /var/log/mail.log, to see if there’s any errors or other helpful information in there.
Also, if you’re using an OpenVZ or Virtuozzo VPS, can you paste in the contents of your /proc/user_beancounters file?
Seems you’re not performing these commands as root. You might want to retry them as root.
Also, please fix your second post with the mail.log and add the code tags.
I did the installation again and start with a clean ubuntu copy and virtualmin gpl and started right away. The error that started with went off but now I can received, but I can not send out and this is the mail log
Dec 21 12:34:46 sipeicenet dovecot: imap-login: Login: user=<adminsipeicenet>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3483, secured
Dec 21 12:34:46 sipeicenet dovecot: imap-login: Login: user=<adminsipeicenet>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3484, secured
Dec 21 12:34:47 sipeicenet dovecot: imap(adminsipeicenet): Connection closed bytes=615/8713
Dec 21 12:34:47 sipeicenet dovecot: imap(adminsipeicenet): Connection closed bytes=250/2187
Dec 21 12:35:03 sipeicenet dovecot: imap-login: Login: user=<adminsipeicenet>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3545, secured
Dec 21 12:35:03 sipeicenet dovecot: imap(adminsipeicenet): Connection closed bytes=57/802
Dec 21 12:35:03 sipeicenet dovecot: imap-login: Login: user=<adminsipeicenet>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3547, secured
Dec 21 12:35:03 sipeicenet dovecot: imap(adminsipeicenet): Connection closed bytes=57/802
Dec 21 12:35:47 sipeicenet dovecot: imap-login: Login: user=<adminsipeicenet>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3556, secured
Dec 21 12:35:48 sipeicenet postfix/smtpd[3564]: connect from sipeicenet.iownyour.org[127.0.0.1]
Dec 21 12:35:48 sipeicenet postfix/trivial-rewrite[3567]: warning: do not list domain sipeicenet.iownyour.org in BOTH mydestination and virtual_alias_domains
Dec 21 12:35:48 sipeicenet postfix/smtpd[3564]: 7729FD0090A: client=sipeicenet.iownyour.org[127.0.0.1]
Dec 21 12:35:48 sipeicenet postfix/cleanup[3568]: 7729FD0090A: message-id=<1387647347.3554@sipeicenet.iownyour.org>
Dec 21 12:35:48 sipeicenet postfix/qmgr[2119]: 7729FD0090A: from=<adminsipeicenet@sipeicenet.iownyour.org>, size=772, nrcpt=1 (queue active)
Dec 21 12:35:48 sipeicenet postfix/smtpd[3564]: disconnect from sipeicenet.iownyour.org[127.0.0.1]
Dec 21 12:35:48 sipeicenet dovecot: imap(adminsipeicenet): Connection closed bytes=840/2189
Dec 21 12:35:55 sipeicenet dovecot: imap-login: Login: user=<adminsipeicenet>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3573, secured
Dec 21 12:35:55 sipeicenet dovecot: imap(adminsipeicenet): Connection closed bytes=615/8713
Dear Locutus, I really want to tell you THANKS for all your patience with me. Really appreciated. I did not change the lasts messages because was the same that I fixed before, now I did all of them for you, promise I was not ignoring you, sorry if I gave the wrong impression. Also I am copying the results with root access. Thanks for helping me out.
root@sipeicesrv:/home/jorge# service postfix restart
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix [ OK ]
root@sipeicesrv:/home/jorge# netstat -tpln | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 26292/master
tcp6 0 0 :::25 :::* LISTEN 26292/master
root@sipeicesrv:/home/jorge# ps aux | grep postfix
root 2132 0.0 0.0 12068 836 ? Ss Dec22 0:00 /usr/sbin/sasla uthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root 2133 0.0 0.0 12068 520 ? S Dec22 0:00 /usr/sbin/sasla uthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root 2134 0.0 0.0 12068 520 ? S Dec22 0:00 /usr/sbin/sasla uthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root 2135 0.0 0.0 12068 520 ? S Dec22 0:00 /usr/sbin/sasla uthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root 2136 0.0 0.0 12068 520 ? S Dec22 0:00 /usr/sbin/sasla uthd -a pam -m /var/spool/postfix/var/run/saslauthd -r -n 5
root 26292 0.0 0.0 4580 1436 ? Ss 17:38 0:00 /usr/lib/postfi x/master
postfix 26295 0.0 0.0 4600 1324 ? S 17:38 0:00 pickup -l -t fi fo -u -c
postfix 26296 0.0 0.0 4756 1532 ? S 17:38 0:00 qmgr -l -t fifo -u
postfix 26297 0.0 0.1 4796 1872 ? S 17:38 0:00 trivial-rewrite -n rewrite -t unix -u -c
postfix 26298 0.0 0.1 7136 2072 ? S 17:38 0:00 smtp -t unix -u -c
root 26401 0.0 0.0 4388 832 pts/0 S+ 17:39 0:00 grep --color=au to postfix
Okay, so it looks like Postfix is running okay after you start it with the “service” command. Not sure why Virtualmin would assume it to still be down; might be that it’s configured to look in the wrong place for its process ID file.
The key problem message in your mail log seems to be this one:
Dec 21 12:35:48 sipeicenet postfix/trivial-rewrite[3567]: warning: do not list domain sipeicenet.iownyour.org in BOTH mydestination and virtual_alias_domains
This usually occurs when you create the domain part or the full text of your server’s FQDN as a Virtualmin server. This is not recommended. What output do you get for these:
If that information does not help, please repeat the process that gives you errors, and tell us precisely what you did (send/receive mail from where to where using which IPs etc.), and post log excerpts of the attempt.
Okay, there seem to be several discrepancies between your various configuration files. For one, you should decide on one FQDN for your server. You have a variety of “sipeicenet”, “sipeicesrv” and “sipeice” in your config files.
Let’s say your FQDN is “australis.mydomain.de”, and the server’s external IP is “1.2.3.4”. Then you need the following contents: (postconf output is only an excerpt of the relevant lines)
Dynamic external IP… are you forwarding to Virtualmin via NAT? Then use the LAN IP instead. Make sure though to use an externally resolvable name as your FQDN.
You’ll run into trouble though if you try to operate your own public nameserver on a dynamic IP. You should get a static one or a hosted server for that, or use external nameservers.
NAT / home connections / dynamic IPs make server hosting with Virtualmin (and in general) a lot more complicated.