These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Postfix problem - cannot send any messages, but says it is ok on the new forum.
Heloo, all!
My server has been crashed today and i repair almost everything except mail sending. The strange thing is that i can view mail, but cannot send. I tried to send a message with telnet, it was accepted, but not delivered at all.
Can someone help me to fix this?
P.s. I dont know is this topic is in the right place...
Edit: I noticed something. Mails are sending , but not delivered to rcpt :/
Howdy,
When email isn't working, you can often find what's wrong by reviewing the error logs.
Those are in either /var/log/maillog, or /var/log/mail.log, depending on your Linux distribution.
-Eric
maillog doesnt tell anything after system crash. No errors, no warnings... nothing at all! I have installed roundcube as web mail and roud cube sais that message is sent, but rpct didnt recieve the mail.
seems to be ok, but no e-mail recieved :/
Regards, Dean Iliev
Howdy,
Well, the mail log should be telling you about every message that is sent and received.
Even if there aren't errors, it would at least show you that it was delivered.
If you aren't seeing anything at all, if the mail log is blank -- well, you'll want to get that fixed first :-)
You may want to try restarting both syslog and postfix, and see if your mail logs begin showing up at that point.
-Eric
Here is the log after I send a message:
P.S. Very strange...
But I can Login and read mails.
I think i found the problem... Server is trying to rewrite mail addres and confuses with com.com...
But how to fix it ?
Regards, Dean Iliev
alternatives --config mta service postfix stop chkconfig --level 345 postfix off service sendmail start chkconfig --level 345 sendmail on
Hmm, is your hostname in FQDN format -- host.domain.com? You can determine that by running the command "hostname".
Also, is there a Virtual Server with the same name as your hostname? That can sometimes cause problems.
You'd also want to make sure that your hostname appears in /etc/hosts, next to your public IP.
Lastly, you may want to try running System Settings -> Re-Check Config, just to make sure it doesn't see anything unusual.
-Eric
Yes, there IS a virtual server with the same name.
Re-check config says that everything is OK.
Ok, I added mydomain directive in main.cf and this is happening:
I think the mymail-mydomain.com@myhost is right thig. /usr/bin/procmail-wrapper does exist and it is with
atributes.
Regards, Dean Iliev
(Command died with status 127: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: /bin/sh: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME:
Hmm, that's an unusual error.
So just to be sure, if you run this here command:
ls -l /usr/bin/procmail-wrapper
It is showing the same file that you mentioned above?
What distribution/version are you using there?
Also, if you look in /etc/postfix/master.cf, see where it mentions "chroot"? There's an entire column in there dedicated to whether or not each Postfix service is set to run in a chroot environment.
They should all be set to 'n', as a lot of additional manual configuration needs to be done to get a chroot environment working properly... are any of the Postfix services in the master.cf file there set to try and use a chroot environment?
-Eric
The problem was in postfix configuration - Postfix>>Local delivery>>""Shell to use for delivery to external command"" was marked as /bin/sh. It has to be direct exec of commands.
Thanks for help, Best regards, Dean
Regards, Dean Iliev
Great, I'm glad you got it working, thanks for letting us know how you fixed it!
-Eric
Since that failure the system still tries to send messages to @com.com Webmin>Postfix>Mail Queue says 0 messages. How to stop them manually?
Regards, Dean Iliev