I installed the IREDMAIL in my centos 6.0 server. It works like a charm, i didn't changed the IREDMAIL original configuration, just added my domain so i can create new accounts. If i send a email using the roundcube (email web client) or configure the smtp/pop3 to a email client (Like mail on mac) it sends the email just perfect.
Then i tried to send an email using the sendmail command and then problems. A friend told me to use the SSMTP to send my emails. Then i installed it and configured my account using the smtp server as localhost (The same way the roundcube PHP uses in the configuration file). I can send the email like echo test | ssmtp -f email@example.com
My domain is configured in the hostname. The problem is: On my email i receive root
Then i tried 2 things:
Use the -F myemail param, but it goes to the spam box (the email is fine, the way i want, but it goes to the spam box) Then i tried to create an user on my linux server like myemail, but it sends as root too.
If i do a ssmtp -v on my command line it shows to me FROM: root
I don't have too much experience using Linux or with mail, but the roundcube sends perfectly, so i imagined the sendmail will work the same way. But it didn't. My problem is, i receive the from email correctly, but the name is root, i want to be able to change and put myemail, like when using -F myemail. But it goes to the spambox.
Someone can help me?