This article covers a version of Ubuntu that is no longer supported. If you are currently operate a server running Ubuntu 12.04, we highly recommend upgrading or migrating to a supported version of Ubuntu:
Reason: Ubuntu 12.04 reached end of life (EOL) on April 28, 2017 and no longer receives security patches or updates. This guide is no longer maintained.
See Instead:
This guide might still be useful as a reference, but may not work on other Ubuntu releases. If available, we strongly recommend using a guide written for the version of Ubuntu you are using. You can use the search functionality at the top of the page to find a more recent version.
If you would like to create your own online e-mail system, you can use iRedMail. In this article, we will explain how you can do it.
We use a 2 CPU Core / 2GB RAM droplet with Ubuntu 12.04 x64 image.
iRedMail is currently supported on Ubuntu 12.04 LTS and Ubuntu 13.04, among many other distributions of Linux.
If you have a domain name you want to use, name your droplet as that domain name, which will become its hostname and reverse DNS record.
For our Cloud Mail purposes, we will register a free domain, cloudmail.tk from dot.tk
Once you have your domain name registered, point it to DigitalOcean's name servers:
ns1.digitalocean.com (198.199.120.125)
ns2.digitalocean.com (141.0.170.89)
ns3.digitalocean.com (198.199.95.114)
Make sure to check those IP addresses manually, as they may have changed since the time this article was written.
Now open your Control Panel on DigitalOcean and click DNS, located under Labs section.
Click Add Domain and create a new record by pointing your new domain to your droplet's IP address:
Create a new MX record, make sure to have a trailing dot at the end of your domain name:
Add SPF records to make sure others cant spoof emails by pretending to send them from your domain.
Make sure to have "-all" in your SPF record, and point it to your droplet's IP.
The record's format would be "v=spf1 ip4:IP_ADDRESS -all"
There will be one more record to add after you have finished installing iRedMail - DKIM key.
Make sure to set the hostname of your domain name, if you haven't done this during droplet creation:
wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.6.tar.bz2
tar jxvf iRedMail-0.8.6.tar.bz2 && cd iRedMail-0.8.6
hostname cloudmail.tk
bash iRedMail.sh
You are greeted with a Graphical User Interface Installer by iRedMail:
If you have several droplets, you can even use GlusterFS for distributed, replicated e-mail storage, providing further redundancy:
For backend, we chose MySQL. You can also use OpenLDAP and PostgreSQL:
Since we have registered a domain in Step 2, we will place it here:
From package selection, you can omit phpMyAdmin and Fail2Ban.
When asked whether you would like to use firewall rules provided with iRedMail, select 'No'.
Firewall rules should be custom made for each server, and adopting a DROP ruleset from iRedMail's package is not recommended.
We would also not recommend using Fail2Ban from their package, as it banned our own IP when we refreshed a page.
Reboot your droplet after completion.
All of the installation notes and logs can be found in iRedMail.tips file ( /root/iRedMail-0.8.6/iRedMail.tips ).
Here you will have information on passwords, SSL certificate locations, and DKIM records.
Add the DKIM record to DigitalOcean's DNS control panel for your domain:
Although this step is optional if you just want to use self-generated certificate, we would still recommend getting a trusted SSL certificate.
By default, iRedMail will create a self-signed certificate and store it in /etc/ssl/certs/iRedMail_CA.pem and /etc/ssl/private/iRedMail.key
We can get a free SSL certificate from InstantSSL
You would need to create a CSR and private KEY first:
cd /etc/ssl openssl req -out cloudmail.tk.csr -new -newkey rsa:2048 -nodes -keyout cloudmail.tk.key
This will generate 2 files: cloudmail.tk.csr (your Certificate Signing Request file), and cloudmail.tl.key (your private SSL key which should not be shared with anyone).
You would provide the CSR file (cloudmail.tk.csr) to InstantSSL during SSL request.
After they have validated your request, you will receive the certificate file (in zip format) that contains two files:
cloudmail_tk.ca-bundle (your SSL certificate bundle)
cloudmail_tk.crt (your SSL certificate)
Place both files to /etc/ssl and modify /etc/apache2/sites-available/default-ssl
SSLCertificateFile /etc/ssl/cloudmail.tk.crt SSLCertificateKeyFile /etc/ssl/cloudmail.tk.key SSLCACertificateFile /etc/ssl/cloudmail.tk.ca-bundle.crt
Restart Apache
service apache2 restart
Now you should have SSL enabled, and you can proceed to logging in to iRedAdmin (https://cloudmail.tk/iredadmin/ ) with username postmaster@cloudmail.tk and password you provided during installation in Step 3.
From iRedAdmin, you can add new users, new admins, and new domains into your system:
Once you have created an e-mail account, you can access it at https://cloudmail.tk/mail/
And you are all done!
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Every thing went well until I got to the DKIM part as in my iRedMail.tips I have nothing below that to add to the txt record. it just like this :
DNS record for DKIM support:
Amavisd-new: * Configuration files:
Try this:
amavisd-new showkeys
How do I modify this to serve mail for multiple domains (they aren’t related)?
Also I tested this on wheezy with postgresql and it works
@inbox thanks that found my dkim keys. Now my problem is that i am able to send mail but not receive any email outside my server.
I have searched high and low for the answer on this. If you are setting up a subdomain as the mail server, and cannot change the name servers on a subdomain, what are the proper DNS settings for each end? I am trying to redirect the MX record to a subdomain that has an A record which is directed to the mail server. Thank you for your help!
If you would like to receive mail on subdomain, simply point root (@) MX record to subdomain, and create A type record for the subdomain’s IP address:
@ IN MX mail.domain.com mail IN A 1.2.3.4
I have it all setup, and I can log into roundcube, but when I try to send mail from roundcube I get the error:
SMTP Error (451): Failed to add recipient “myemail@gmail.com” (configuration problem).
I don’t have an SSL certificate and I received the security warning when going to the website.
Any thoughts?
Hi @anthony104889 Any luck finding a solution for this?
Fresh install on Ubuntu 14.04. Seems mysql is not connected on correct socket :$
how can we use this with multiple domains ?
how can I receive e-mails from other servers? I just can receive from local network.
pgvalentlm, you are lucky i just installed all the things finally the URL are not accessible i want to use it on my LAN network. can you please help me
Al am also suffering the same issues. I can send mails. But I can not receive mails from outside world. My RAW BIND looks like this
Raw Bind $TTL 7200 @ IN SOA ns1.digitalocean.com. hostmaster.oddsodz.com. ( 1366249495 ; last update: 2013-04-18 01:44:55 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 10800 ; 3 hours ttl ) IN NS ns1.digitalocean.com. NS ns2.digitalocean.com. NS ns3.digitalocean.com.
@ IN A 198.199.75.193 @ TXT “v=spf1 ip4:IP_ADDRESS -all” dkim._domainkey TXT v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5o7W03WtnVDb8DSGt+XCj0yH7UF712xlOGOz18fM6zAuMwLNP9/vlfUDS0fWYZDCWf8SrINx8qhFgOfmAlbMO0AZfgEt7bn1+tVrGpT15TMlPfMpJYxCVXLkZmFtxwbU6N3nfpjX2NZ3eTacVeGL84D3ueF+s4AalZHX/Agoe6wIDAQAB
but if I run “amavisd testkeys” I get
“invalid (public key: missing p= tag)”
I Am pulling hair out.
Peter,
Initially I had the issue of emails not receiving from outside, but I wait for a few hours, checked the email again and they came to my inbox. I use POP.
Regarding amavisd, you need to escape that semicolon using the backslash character. I use the following format.
dkim._domainkey TXT “v=DKIM1;t=s;n=core;p=MIGfMA0GCSqG…”
Do you mean to add the backslash in the line in the digitalocean DNS control pages for your droplets?
I’m having the same problem as many other people here. I have successfully installed iRedMail. SSL is setup and working. I can send to external email accounts. I can receive from internal email account but can not receive emails from external email accounts. Can you please look at the DNS config below and offer and suggestion as to what the problem may be?
Raw Bind $TTL 7200 @ IN SOA ns1.digitalocean.com. hostmaster.auld.us. ( 1366559900 ; last update: 2013-04-21 15:58:20 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 10800 ; 3 hours ttl ) IN NS ns1.digitalocean.com. NS ns2.digitalocean.com. NS ns3.digitalocean.com.
MX 0 auld.us. @ IN A 198.211.117.61 www CNAME @ @ TXT “v=spf1 ip4:198.211.117.61 -all” dkim._domainkey TXT “v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCw3WtOZ1jovcJdkFKlbrJW1CJoHr6mKDm5lIg+YSguKZMPbSE0bEmZCxD/g16PA2ArGhMwKBcEQoG6fgb71AL88S4JjyuxPtGsQeSATg14+xmTU18pqRgDutK6ojVeCwycy0pI3xSn7AjUxnXdZsAo4MlJOYJAQbCf9BvY86K2IQIDAQAB”
Many thanks to any help you can provide.
Regards … Tim.
The solution to my problem posted above, was that Greylisting was enabled in Cluebringer. I know, I had never heard of it either. There is some good information here: http://www.iredmail.org/forum/topic3162-iredmail-support-too-much-spam.html.
This also means that my DNS settings in the Raw Bind posted above are also correct, for those who might be having problems with it.
Regards … Tim.
I’m able to get and receive mail, I also added ( purchased ) a SSL certificate ::: Now when I configure Thunderbird for POP3 mail I get the following error "You are about to override how thunderbird identifies this site … " ::: I’m not able to resolve it :::
Another question : If I wanted to use mail.myserver.com , how do I go about this, I’ve tried adding a CNAME with no “luck” :::
Any Help Would be Appreciated :::
Was able to solve my “Thunderbird” certification issue ::: I loaded the wrong INTERMEDIATE cert file to my server :::
Michael, I tried making the virtual domain name mail.myserver.com but then it wanted the email address to be tim@mail.myserver.com, which I didn’t like. I’m sure I was doing something wrong. So I compromised and reference my mailbox by using myserver.com/mail and that works just fine.
Regards … Tim.
Works on Ubuntu 12.10 64-bit image; does not seem to work on Debian 6.0 64-bit image. What do I have to do? Thanks
It wasn’t an issue with the images. My Ubuntu and Debian droplets were connected to different domains, and when I tested with the same domain the mail server on the Debian image works. So maybe the problem lies with the dns configuration on that first test. So let me apologize for the last posting and confirm that these instructions work for the Debian 6.0 64 bit image.
After following the tutorial and reading some of the comments made, I have been able to successfully install and have it work ‘properly’. I am able to both send/receive mail from the webmail (https) and imap email client (ssl). Although, on every email that is sent or received, I get the following errors while tailing mail.log.
[status] amavis[1118]: (01118-01) (!)connect to /tmp/clamd.socket failed, attempt #1: Can’t connect to UNIX socket /tmp/clamd.socket: No such file or directory amavis[1118]: (01118-01) (!)connect to /tmp/clamd.socket failed, attempt #1: Can’t connect to UNIX socket /tmp/clamd.socket: No such file or directory amavis[1118]: (01118-01) (!)ClamAV-clamd: All attempts (1) failed connecting to /tmp/clamd.socket, retrying (2) amavis[1118]: (01118-01) (!)connect to /tmp/clamd.socket failed, attempt #1: Can’t connect to UNIX socket /tmp/clamd.socket: No such file or directory amavis[1118]: (01118-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (All attempts (1) failed connecting to /tmp/clamd.socket) at (eval 114) line 603.\n amavis[1118]: (01118-01) (!)WARN: all primary virus scanners failed, considering backups amavis[1118]: (01118-01) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan KILLED, signal 9 (0009) at (eval 114) line 899. amavis[1118]: (01118-01) (!!)AV: ALL VIRUS SCANNERS FAILED [/status]
Any suggestions?
David, which distro are you running? Locate /etc/clamd.conf and make sure you have this line “LocalSocket /tmp/clamd.socket” then run “service clamd start” - and if its CentOS: “chkconfig clamd on”
Am I s’pose to delete all the quotes plus merge the charecters into one line before I copy / paste this DKIM record into DNS TXT record?
Thanks for your attention,
(what I copy and pasted) “v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCxYMAU6R0BRyOjx+Nq8stTGOBNUV3K7qVhO/1ZsXjQvIqzZmugkLgqEwXv1U7aUI8r4NEc+bMsqhjlwDvD+7yUH5EoVUOiAnF5Cqwquh/jl7QHe3+F1CHXQ+AwdSocBJUUjnt5uqN1tP/yT193rPyX7v/pZthmtorVjkdyFLhIKwIDAQAB”
(what I received from PuTTY when I typed in “amavisd-new showkeys”) dkim._domainkey.magew.com. 3600 TXT ( “v=DKIM1; p=” “MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCxYMAU6R0BRyOjx+Nq8stTGOBN” “UV3K7qVhO/1ZsXjQvIqzZmugkLgqEwXv1U7aUI8r4NEc+bMsqhjlwDvD+7yUH5Eo” “VUOiAnF5Cqwquh/jl7QHe3+F1CHXQ+AwdSocBJUUjnt5uqN1tP/yT193rPyX7v/p” “ZthmtorVjkdyFLhIKwIDAQAB”)
bee tee dubelyou - during tut, I came across error saying I need to install most recent version
replace “0.8.3” with “0.8.4”
(update list) https://bitbucket.org/zhb/iredmail/downloads/
almost positive this is the answer (found it above) for dkim format – YIKES!
dkim._domainkey TXT “v=DKIM1;t=s;n=core;p=MIGfMA0GCSqG…”
I Install iRedMail and when I try to access https://xxxxxx/mail/ I get the following error
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database! Please contact your server-administrator.
How do I fix it?
@denis.beganovic is MySQL running? service mysql status
Yes MySQL running. Problem solved by re-creating the droplet. The error was in setting password for database admins.
I’ve been reading that a few people are running into issues with not being able to receive mail… I’m running into this issue as well.
I can send file, but I can’t receive.
How is everyone solving this?
Thanks!
The best place to look to solve errors is often the mail logs; they can often detail why your server is rejecting mail.
You could also check your doamins MX records to make sure they are set correctly, or even on another droplet send mail to the destination server and see what the sending server’s logs say about its attempt to deliver mail.
If you comment out the lines in /etc/postfix/main.cf at the end that have to do amavis then “service postfix restart” you’re probably in business. That’s what I used to get it up and going, but there will be no spam filtering happening. It’s a workaround.
The First Virtual Domain Name should not be the same as the Hostname of the Server. The method shown here is wrong.
Also I would recommend that you should install fail2ban. The problem specified here (ban when refreshing webpage) is because of the Tutorial Author’s fail2ban configuration. We can always change the configuration easily, when such problem arises.
add multiple domain just add the domain at DNS add the MX domainname.com 0 add the domain name and user at iredadmin as well
I have followed this tutorial and iredmail and everything is working fine. BUT, when i want to reach my webpage now, whenever i enter www.kitzcloud.tk i got redirectet do the https://kitzcloud.tk/mail iRedmail :-( how can i change that?
I have followed above tutorial and able to send mails to all the domains like yahoo,gmail and works very fast.But i am not able to receive any of the mails from external domains.Internal virtual domains works fine.Even when i send mail from gmail,it says that "message sent " and no bouncing errors.trying to fix it from last two days but no luck…Any idea to fix it?
bernhard.obermoser try Open up the SSL config file: sudo nano /etc/apache2/sites-available/default
Change the port on the virtual host to 80, not the default SSL port: <VirtualHost *:80>
@yenyan45: I had bad luck, the default config already points to port 80, so i still have the same problem, i enter my domain darkthrone.tk and i arrive at the ssl roundcube login… i also found out, that i cant recieve emails but send mails
iRedMail enables greylisting by default, it causes email delay. Visit http://greylisting.org/ for more details. Check /var/log/mail.log to see if the email actually arrived. If it is in the log, just give sometime to pass the greylisting. Better find solution on iRedMail online forum http://www.iredmail.org/forum
@raviprasad: That’s greylisting. It is the best way to Prevent Spams. Better than a Spam Filter like gmail.
Hello,
I have successfully installed as followed on the instructions. Sending and receiving seem fine but why I got this on the header when sending email to gmail “dkim=neutral (bad format)” . Though checking my dkim using this link http://www.protodave.com/tools/dkim-key-checker/ was successful.
Any ideas why I got this?
Regards, Rocel
@michael what’s your domain name?
i dont know what i did wrong but after this tutorial my main url goes directly to https://www..pw/mail/ instead of http://www..pw/index.html
@vicentevrl: It’s supposed to redirect to /mail - you should install iRedMail on preferably a separate droplet or a separate subdomain.
@vicentevrl: iRedMail created a file named index.html in directory, so you have to replace it by your old one. Hope it helps!
I’m having the same problem as @vicentevrl however my index.html is untouched. HTTPS forwards to domain.com/mail. This is now occurring to all domains on the server.
@jfgodin: Please take a look at this iRedMail forum thread: http://www.iredmail.org/forum/topic4266-iredmail-support-page-redirect.html
I recommend asking in the official iRedMail forums.
If you are getting errors - amavis[29137]: (!)Net::Server: 2013/07/23-09:41:54 Couldn’t fork: [Cannot allocate memory] at /usr/share/perl5/Net/Server/Daemonize.pm line 182.\n\n at line 164 in file /usr/share/perl5/Net/Server.pm you will need to enable Swap partitions on ubuntu - https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
example.com/mail and I get this, what can I do?
When I installed, It didnt asked me anything about configuring mysql or anything
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database! Please contact your server-administrator
@germanab7: Did you install iRedMail on a pre-existing droplet or a fresh new one?
Kamal tks for you answer.
More questions I installed it on a fresh new one but I don’t know what happened, then I destroyed the droplet and redid everything and it worked fine, but I had some other questions
1.-Should the hostname be the same as the domain? if it’s the same does it have conflict with redmail? 2.-And when I install iRedMail should I install it without LAMP and any other package? or whats the recommendation 3.- How should it look the etc/hosts, should I add the MY droplet IP below? or in the same I just enter my info 127.0.0.1 mx.example.com demo localhost localhost.localdomain
Tks
weird
Cluebringer is disabled
1.- send an email to a hotmail account and cant send, but if that account sends an email to my account I can receive and reply back 2.- if a send email to a different email account I CAN send 3- also all my emails a being delivered to junk mail how can i fix that ?
Also im having trouble with DKIM
amavisd-new testkeys
WARN: running under user ‘1000’ (UID=1000), the config file specifies $daemon_user=‘amavis’ (UID=110) TESTING#1: dkim._domainkey.nomisoft.com.mx => invalid (public key: OpenSSL error: bad base64 decode)
Enter mx.nomisoft.com.mx as the hostname.
iRedMail will install a LAMP stack automatically for the web interface so you don’t have to install anything yourself.
Split them into two lines:
127.0.0.1 mx.nomisoft.com.mx mx 127.0.0.1 localhost.localdomain localhost
Where do you see that error?
I keep getting this error at the ‘Configure MySQL database server’ stage:
< INFO > Configure MySQL database server. mysqladmin: connect to server at ‘localhost’ failed error: ‘Access denied for user ‘root’@‘localhost’ (using password: NO)’
Any ideas? I AM using a password (typed it in during the set up process) and I’ve tried both leaving the MySQL password as it is (i.e. password) and also changing that and putting in the new password, still same error.
@James: Can you connect to mysql using the following command?
“mysql -u root -h localhost -p”
@Kamal
Trying to add a DKIM record adn I get this
× Data Only valid hostname characters are allowed. (a-z, A-Z, 0-9, . and -) Or a single record of ‘@’.
Its very weird, I had to delete a TXT record and the add it again, I just modified the IP and I get the bellow message
@germanab7: Where do you see that error?
@Kamar
I see It in the digitalocean control panel under DNS - Domains that is when I try to add a TXT record, not on the name but the text of the record, I have done it before and had no problems, I get this message
@kamar
I tried it again and now I have no problems, tks kamar
Thats was Weird
I did the same thing and now I didn’t get the message
Glad you figured it out :]
I’m trying to run the install and am getting stuck.
When it comes time to install it says iRedMail isn’t supported with Ubuntu 12.10. Can anybody help?
@tonychevere: You can’t install iRedMail on Ubuntu 12.04. You have to rebuild your droplet from an Ubuntu 12.04 x64 image.
I was having trouble receiving until I went into the cluebringer conf and turned off greylisting.
In Ubuntu 12.04, the cluebringer config is at /etc/cluebringer/cluebringer.conf.
I just did this install, but I am not able to send mail with php mail()
or do I need postfix to use php mail() function?
@ken.thul: If you just want to send mail using php and not receive mail, install postfix:
<pre>sudo apt-get install postfix</pre>
Thank you. And how do I uninstall iredmail after following this tutorial?
@ken.thul: You can follow this article on uninstalling iredmail:
http://www.iredmail.org/forum/topic333-iredmail-support-faq-how-to-uninstall-iredmail.html
Once again, fast and awesome support! Thanks
Hello, I followed your tutorial but getting the following error: Aug 14 15:02:04 localhost postfix/error[5706]: 8400A2267C: to=hello@bitocash.com, relay=none, delay=1.8, delays=1.8/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Previous warning msg: Aug 14 15:26:00 localhost postfix/qmgr[1690]: warning: connect to transport private/amavis: No such file or directory
This link solved the issue: http://www.hamiltonpdx.com/blogs/index.php/postix-clamav-and-amavisd-new
where can I find my DKIM record?
@felix.johnson: Run this command:
<pre>amavisd showkeys domain.com</pre>
It should output the TXT DNS record for DKIM.
amavisd showkeys domain.com this dosen`t work for me
it says command not found
Did you install iRedMail?
Hi, kamal: I did
I came to the Point where I have to put my DKIM key in the droplet…but just can`t get there
it`s saying, comman not fount
could it be because I tried to install dovecot earlier?
@felix.johnson: Can you please have just <strong>one</strong> comment per question? Try this command instead?
<pre>amavisd-new showkeys</pre>
Ya folks forgot little line, that finds the DKIM key :)
sudo /usr/sbin/amavisd-new showkeys
hi guys, the tut says modify SSLCertificateFile /etc/ssl/cloudmail.tk.crt SSLCertificateKeyFile /etc/ssl/cloudmail.tk.key SSLCACertificateFile /etc/ssl/cloudmail.tk.ca-bundle.crt does this mean these lines should be added to the default file?
I have followed this tut to the end but still unsure how to present the .csr file to instantSSL. ICan you explain a Little more plz.
Dude! NO… that shows ya the location of these files… c’mon man…
@felix.johnson: “Purchase” a free trial SSL cert from InstantSSL, and paste the contents of cloudmail.tk.csr when they ask you for the CSR.
Hi kamal, these lines: SSLCertificateKeyFile /etc/ssl/cloudmail.tk.key Am I not suppose to change cloudmail.tk to my domain name?
Hello, almost done with this ssl thing…but now when I restart apache I get error: SSLCACertificateFile /etc/ssl/jsports_se.ca-bundle.crt File does not exist or it`s empty. Why? Any help?
Felix
@felix.johnson: Did you create that file? Does it exist?
<pre>stat /etc/ssl/jsports_se.ca-bundle.crt</pre>
yes it exist. It was in the zip file that was emailed to me.
@felix.johnson: Did you upload it to the droplet?
yes
I have the two files from the zip, together with the key and the csr file in /etc/ssl/
I can send and reveive mail with iredmail but on the address bar, it`s red which means the cretificate in not installed.
@felix.johnson: Try restarting apache again – what does it output?
<pre>sudo service apache2 restart</pre>
still the same. And it takes a very long time to receive mail on iredmail.
kamal: I tested my dkim key with this command: amavisd-new testkeys and it says invalid key. Why?
the output is: Syntax error on line 57 of /etc/apache2/sites-enabled/default-ssl: SSLCACertificateFile: file ‘/etc/ssl/jsports_se.ca-bundle.crt’ does not exist or is empty
@felix.johnson: It seems to be empty – are you sure you uploaded it properly?
<pre>wc -l /etc/ssl/jsports_se.ca-bundle.crt</pre>
I did it manually through WinSCP
I hope I don`t have to add anything to the contents of the bundle file.
@felix.johnson: What’s the output of the command I posted?
wc: /etc/ssl/jsports_se.ca-bundle.crt: No such file or directory
@felix.johnson: The file doesn’t exist. Upload it as root using winscp again.
okay, I will do it again. But it is suppose to be in the dir /etc/ssl/ together with the other files. And I`m not very sure where these lines: SSLCertificateFile /etc/ssl/cloudmail.tk.crt SSLCertificateKeyFile /etc/ssl/cloudmail.tk.key SSLCACertificateFile /etc/ssl/cloudmail.tk.ca-bundle.crt should be placed inside of the default.ssl file. Should I just Place them whereever?
@felix.johnson: These lines are usually placed under ServerName or ServerOwner.
okay
Kamal: one question…hmm maybe two…:) I tested my dkim key with this code: amavisd-new testkeys, and it says invalid key. Did I maybe copied it wringly? The second question is, it looks like my Common Namne is cloudmail.tk. I have destroyed my droplet and did a fresh installation of iredmail with the correct information ie my domain name and even talked to instantSSL and made them send me Another SSL file but still when I check the ssl information on the browser it still says cloudmail.tk. Certificateobject is root@cloudmail.tk. Could it be because I did not delete the DNS informations when I destroyed the droplet? Thanks
@felix.johnson: What are the exact commands you ran in Step 4?
cd /etc/ssl openssl req -out jsports.se.csr -new -newkey rsa:2048 -nodes -keyout jsports.se.key
@felix.johnson: and what did you fill in in the questions openssl asked you?
Hi guys. I installed iRedMail on my droplet, which by the way has SSL working from Godaddy. When I access https://mydomain.com it works. Same for https://mydomain.com/mail. However, when I try to access https://mydomain.com/iredadmin or /awstats, well that’s a whole different story. It just says “NOT FOUND - The requested URL /iredadmin/ was not found on this server.” What can it be? PS: I have installed LAMP + phpMyAdmin for my website, and the droplet is Ubuntu 13.04 x64
I figured out by myself, but thank you anyway. The thing was that I had VirtualHost configured in Apache with it’s settings, while the iRedMail installation had installed the Aliases and WSGI Aliases code only under default-ssl configuration, not in my Virtual Host configuration for my site.
Hope that it makes sense.
Hi kamal, I filled in jsports.se as CN(Common Name). Ok, first I did wrong and filled in cloudmail.tk and then when I found out, I destroyed my droplet but did not wipe out the DNS record I only remove the DKIM key and then re-create droplet. Could it be that those informations are still there in the DNS? If so, how do I go about it to fix it?
Thanx
@felix.johnson: You need to create a new CSR with jsports.se as the CN and re-issue your certificate.
I already did
Kamal, this is out of the topic. Take a look at this code. I have tried to google and find out how I can use it but to no aveil. I want to execute ffmpeg in the background without having php to wait. Here is a code I found on the internet.
<?php function executeInBackground() { if (substr(php_uname(), 0, 7) == “Windows”) { pclose(popen("start /B “. $cmd, “r”)); } else { exec($cmd . " > /dev/null &”);
} ?> what does this do? Sorry for bugging you with all my stupid questions :). }
@felix.johnson: Please create a separate question.
@felix.johnson: jsports.se seems to be using a cert created for cloudmail.tk. Try restarting apache.
Yes, I have restarted apache like 100 times.
HI … I have INstalled the iredmail on ubuntu 12.04 LTS server and it is working properly . but i am facing one big problem : I have not received the mail from outside network just like Gmail, yahoo etc.
only receive mail by same domain not other domain.
Multiple RSA server certificates not allowed
when I restart apache after modifying default.ssl, I get Multiple RSA server certificates not allowed. How do I fix this? Thnx
@felix.johnson: You already have an existing SSLCertificate directive there, you should replace them with the correct directives/paths.
Hello! I am following this tut trying to install iredmail. From stage one where it says hostname, should I enter my domain name eg jsports.se even though my hostname is Reading jsports?
Thnx
@felix.johnson: Enter your domain name.
Hi Kamal, I already installed it with my hostname which is jsports without the .se. Now when I check the certificate on the browser, I see that it is been issued to jsports.jsports.se. So I must have done something wrong.
@felix.johnson: Reinstall it with the hostname set to jsports.se
Hi guys, I’m getting the following error from mail.log. Any ideas how can i resolve this issue? Many thanks in advance. : )
Oct 2 13:23:04 localhost postfix/smtp[3673]: A6C7680393: to=<MY EMAIL ADDRESS>, relay=none, delay=1111, delays=1111/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
@mervintankw I had this issue to. I needed to enable swap files on my server. Somebody up above mentioned it but here is the link https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
After that make sure to restart amavisd-new and ClamAV.
How to open the iRedMail.tips so I can get my DKIM records? I am a beginner , please help.
@thenewosama: Run <code>cat /root/iRedMail- 0.8.5/iRedMail.tips</code>
@mervintankw: Make sure you have proper MX records set up on your domain name.
I followed all the instructions and email worked correctly (both sending and receiving). The only (serious) problem is that now I can’t access the website (same droplet) as normal and I can only access the mail. I resorted in using a previously saved droplet snapshot. Now the website works correctly and I haven’t iredmail installed.
What is the correct procedure to install iredmail but not ruin the rest? I want to be able to access www.mydomain.com as normal and have the mail at www.mydomain.com/mail
Apart from that, thanks for this really useful tutorial.
@kostaskostoglou: Try deleting index.html file from /var/www - does that fix it?
Hello,
Thank you for a very nice tut.
I do tho have some problems finding out to input DKIM.
When I do the: amavisd-new showkeys I get: “v=DKIM1; p=” “MIGfMA0GCSgtdIb3DQEBAQUAA4GNADCBiQafgsdgadMPq7d0nG2jzuEJwvO25lL9GZ” “kLrbfshfdhsdjhstrgjsfgjdsfgjdhkhdkdghkgyhkrJiR1L4qD8mqXgyR7emZ7zzEcG” “gvs+4v08R4d0eFOagadgadsgfadhafhPwtnU6ChqYq7tB9euhjf/ZzM8WnW” “vQdqw5G+5YVPQofdgdfgQAB”) Note: I have changed some chars ;)… I am using cloudflare as DNS controller, and I have inputted the follow: v=DKIM1; p=MIGfMA0GCSqGSIb3sdgdsgdsgdsgdsgdsgBgQDAMPq7d0nG2jzuEJwvO25lL9GZkLrbfDtLFFd5yrsS6gaxIXdO7ogJqvDbfXnPjYrJiR1L4qD8mqXgyR7emZ7zzEcGsdgsdgsdgsdgdsgsdfgN8ufyjYX/jcQauPwtnU6ChqYq7tB9euhjf/ZzM8WnWsdgdsgsdgw5G+5YVPQo50tQIDAQAB Note: Again I’ve change some chars.
Can someone help me by telling me how he correct way for inputting this is?
I would like to donate $10-15 to the user that would help me set this up 100% currently. Without any errors, and just working.
Since its a totally fresh droplet it wont be a problem providing full root access.
I have tried 2 times now, and yeah ofc I could try some more times, the thing is that I really needs this done and working ASAP.
Thanks,
P.S the $10-15 will be donated in Bitcoins. I am saying $10-15 as the price can vari, right now it is $15.
@g33kie.l33t: What’s your domain name and can you please take a screenshot of the cloudflare dns record?
Hello Kamal,
My domain is anonogle.com screen-shot: http://i.imgur.com/Jp8uZN9.png
TXT record: v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/us22HqB2oWSXX51IebcFzbMBIah3JVEVoYR1tx9qml/bFavsTbaqrgIxbpohJq5jdeMyZgdqTg5kXB9qHyFZse+FfDpLLSmnsD0+l1Ewf0k8bYhOMDtfZ1jsz4SiVpQvTfwSfBsIrVM3kqey+cI85aIiHufIFd14insorBEI8wIDAQAB
@g33kie.l33t: What’s the full output of <code>amavisd-new showkeys</code>? Please use pastie.org or a similar service.
Sure - http://pastie.org/private/f0x0ezcsqpuabstpj5y8zw
This is now a new droplet, with host mail.anonogle.com instead Even that the hostname is mail.anonogle.com, would I still be able to just use anonogle.com?
Did a whole new install once again, still not working. this is how it is now, and will not change before you respond again :)
http://i.imgur.com/qxdOxDQ.png http://pastie.org/private/z227vlededziqecorggvuw
yay, I managed to get it to work now, somehow? don’t ask how…
Now when I look @ the logs I get a few errors that I hope to be fixed :) http://pastie.org/private/y7dmbf8fixjh1ch0jyusq
@g33kie.l33t: The TXT record’s name should be ‘dkim._domainkey.mail.anonogle.com.’ and not just a TXT record for the main domain.
Regarding the error logs, ClamAV isn’t running so it can’t access its socket.
Hello I’m having a lot of issues getting this to work on my ubuntu droplet. It does run and I can log in to RoundCube, but sending/receiving fails.
I have other hosted services installed and working perfectly and I’d hate to have to revert back to a fresh image. Is there any way to fix this? Here’s my log:
http://pastie.org/8421620
and a screenshot of my DNS settings too
http://imgur.com/RQKCPwp
Help?
Hello everything seems to work now. Seems it was a memory shortage issue.
i followed this tutorial: https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-ubuntu-12-04-x64
but i got undone at the step: All of the installation notes and logs can be found in iRedMail.tips file ( /root/iRedMail- 0.8.5/iRedMail.tips ). Here you will have information on passwords, SSL certificate locations, and DKIM records.
i tried the code sudo nano iRedMail- 0.8.5/iRedMail.tips but it returned an empty file as far as i can tell
anyway, i ignored these steps and finished the tutorial and managed to send an email from roundcube that arrived in my gmail.com email. when i replied it doesn’t seem to have been received but it could still come, it’s been 25minutes?
can you help me identify the contents of the file iRedMail- 0.8.5/iRedMail.tips
@jonathan: If you’re not receiving mail, it would mostly be a DNS issue. Please pastebin the DNS records for your domain
This tutorial is great! I was able to set up a mail server and send/receive email using the info here. I had a few problems with the SSL cert but with some trial and error I was able to figure it out. Thanks!
I tried this on a completely new droplet as described and it didn’t work for me. I’m just looking for some simple mail processing and this looked far to complex to figure out, so I moved on to trying the zpanel I downloaded wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.5.tar.bz2
Can someone please assist me. i have tryied this quide many times and i relly don’t work for me.
My setup:
The top domain i bought is called: cloudmilland.dk i have transfered it succesfully to ns1 ns2 ns3 at digital ocean
when i start up a new droplet i call it the same as the topdomain ? aka cloudmilland.dk
digital ocean then adds a pr record with an apending dot like this: cloudmilland.dk.
what should i call the hostname locally via /etc/hostname ? what should there be in the /etc/hosts file ?
DNS Zonefile on digital ocean
A record is pointet to the droplets ip : @ 146.185.164.10 shal the mx record be with an apending dot? like this cloudmilland.dk. with a priority of 0
I can’t seem to get this working. I even destroyed the droplet and done everything fresh, but regardless the same error message pops up:
< Question > Continue? [y|N]y < INFO > Installing package(s): mysql-server mysql-client postfix-mysql libapache2-mod-auth-mysql apache2 apache2-mpm-prefork apache2.2-common libapache2-mod-php5 php5-cli php5-imap php5-gd php5-mcrypt php5-mysql php5-ldap php5-pgsql libapache2-mod-auth-mysql libapache2-mod-auth-pgsql postfix postfix-pcre postfix-cluebringer postfix-cluebringer-webui postfix-cluebringer-mysql dovecot-imapd dovecot-pop3d dovecot-managesieved dovecot-sieve dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm unrar-free ripole libmail-spf-perl python-mysqldb libapache2-mod-wsgi python-jinja2 python-netifaces python-webpy awstats bzip2 acl patch cron tofrodos logwatch Reading package lists… Done Building dependency tree
Reading state information… Done Package apache2.2-common is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: apache2-bin:i386 apache2:i386 apache2-data apache2-bin apache2
Package libapache2-mod-auth-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
Package libapache2-mod-auth-pgsql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package ‘libapache2-mod-auth-mysql’ has no installation candidate E: Package ‘apache2.2-common’ has no installation candidate E: Package ‘libapache2-mod-auth-mysql’ has no installation candidate E: Package ‘libapache2-mod-auth-pgsql’ has no installation candidate < ERROR > Installation failed, please check the terminal output.
Does anyone know how to fix this?
@kotarodesign: Is this on a 12.04 droplet? What’s the output of <code>lsb_release -a</code>?
I get this error then trying to send email, and i can’t get mail to my mail ither.
SMTP Error (451): Can not add recipient “dan@xxxxxxxxxx.se” (4.3.5 Server configuration problem)
I installed two days ago iRedMail, all ok. I sent and received mails from Gmail, but not yesterday, I coudn’t receive neither send emails, so I restarted the droplet, and then all was right. But today i’ have happened again: the mail server has not worked, restarted the droplet, and then all ok. where can be the issue?
@Eduard: Something must be running out of memory. Try adding swap: <a href=“https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04”>https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04</a>
Thanks @Kamal!!! It’s working always now. Have I free swap memory myself with a cron? or it happens automatically?
It happens automatically.
Thank you very much about your article, i installed but can’t access to http://sunflowertheme.com/iredadmin/ or http://sunflowertheme.com/mail. Can you help me? I’m use Nginx.
Thanks!
Sorry, I’ve missed i’m use virtual domain
@Pham: This should help: <a href=“https://www.digitalocean.com/community/questions/how-do-i-make-iredadmin-from-iredmail-work-under-nginx-ubuntu-13-04-x64”>https://www.digitalocean.com/community/questions/how-do-i-make-iredadmin-from-iredmail-work-under-nginx-ubuntu-13-04-x64</a>
Hello i run the : amavisd-new showkeys it show some keys they are one key or 4 ? withch one i have to put. i asume they are for bec they start and end with “” like “v=DKIM1; p=” “MIGfMA0GCSqGSIb…” “…”
thank you.
@geo: It’s one key. Simply join them in one line and remove the double quotation marks.
Thank you for this awesome tutorial , but i please make a tutorial for NginX. Please Please Please…
Dear all, i wasnt greated with a user interface, these are the last lines on my output. can someone help me?
Thanks for your help.
iRedMail-0.8.5/conf/spamassassin root@1triberadio:~/iRedMail-0.8.5# hostname 1triberadio.com root@1triberadio:~/iRedMail-0.8.5# bash iRedMail.sh ********* ERROR ********* Release version of the operating system on this server is unsupported by iRedMail, please access below link to get the latest iRedMail and a list of supported Linux/BSD distributions and release versions.
http://www.iredmail.org/download.html
root@1triberadio:~/iRedMail-0.8.5#
@1triberadio: What operating system is your droplet running?
I’m getting the same error as @1triberadio and my droplet is running Ubuntu 12.01 x32
Release version of the operating system on this server is unsupported by iRedMail, please access below link to get the latest iRedMail and a list of supported Linux/BSD distributions and release versions.
Ubuntu 12.10 is not supported. You have to use Ubuntu 12.04 or 13.04.
to change to Ubuntu 12.04, should I just change my Droplet kernel? will that affect anything else on my Droplet?
and is there any alternatives to iRedMail that works with Ubuntu 12.10?
@Ahmed: You can’t just change to 12.04, changing the kernel will most likely break your droplet. iRedMail doesn’t work on existing servers (neither do any of the alternatives that I know of) so you will have to install it on a fresh new droplet.
Hi, I can’t sent to hotmail addresses, disabled greylisting, and spam
@germanab7: Check if your droplet’s IP address is blacklisted: <a href=“http://mxtoolbox.com/blacklists.aspx”>http://mxtoolbox.com/blacklists.aspx</a>
@kamal: Everything ok, except=
TIMEOUT ASPEWS 0
I am trying to uninstall iRedMail as it won’t send/receive emails.
However, when I try to move the uninstall script (http://www.iredmail.org/forum/topic333-iredmail-support-faq-how-to-uninstall-iredmail.html), but /root/iRedMail-0.8.6 is not a directory, so I can’t put the script in there…!
Any help? When I
ls -lh
the /root directory I get:-rw-rw-r-- 1 gareth gareth 14K Dec 25 14:32 iRedMail-0.8.6
Thanks in advance
@kamal, Today I just created another droplet with different ip and different domain, and I am able to send to hotmail addresses with no problem, I followed same steps and dns config all the same
With my current domain Its very weird, I Don’t know what happened with my domain, because its sort of blocked, I already communicated the microsoft team and they say everything looks ok, but unless a Hotmail user adds me to his contact list I wont be able to send emails.
@germanab7: Have you tried adding an SPF record? (<a href=“https://www.digitalocean.com/community/articles/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability”>https://www.digitalocean.com/community/articles/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability</a>)
@garethprice: If it’s on a iRedMail-only droplet, you can simply destroy the droplet and create a new one (or rebuild the droplet from an image of your choice). <blockquote>/root/iRedMail-0.8.6 is not a directory</blockquote> What command outputs that error?
I’ve gotten onto the last step but it’s really frustrating with this:
Installing package(s): mysql-server mysql-client postfix-mysql libapache2-mod-auth-mysql libapache2-mod-php5 php5-mysql postfix postfix-pcre postfix-cluebringer postfix-cluebringer-mysql dovecot-imapd dovecot-pop3d dovecot-managesieved dovecot-sieve dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm unrar-free ripole libmail-spf-perl python-mysqldb libapache2-mod-wsgi python-jinja2 python-netifaces python-webpy awstats bzip2 acl patch cron tofrodos logwatch Reading package lists… Done Building dependency tree Reading state information… Done bzip2 is already the newest version. cpio is already the newest version. patch is already the newest version. cron is already the newest version. libapache2-mod-php5 is already the newest version. libapache2-mod-php5 set to manually installed. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: libapache2-mod-auth-mysql : Depends: apache2.2-common (>= 2.2.3-3) but it is not going to be installed E: Unable to correct problems, you have held broken packages. < ERROR > Installation failed, please check the terminal output.
@Andy: What operating system are you using? Are you installing iRedMail on a fresh new droplet or an existing one?
I am using 12.04, and I’ve tried it both on an existing and new one. Their support isn’t very helpful to me yet: http://www.iredmail.org/forum/post26718.html#p26718
Also you should update the guide’s version to 8.0.6. :)
@Andy: Odd. I just tried following it on a new Ubuntu 12.04.3 x64 droplet and it worked just fine. Make sure you use that image, not a snapshot. I’ll update it the download link to 8.0.6.
Hello I installed iRedMail step by step. I have two domains. www.nedegroup.com and www.nutrizzio.com.
When configuring iredmail i’ve set nutrizzio.com as my first virtual domain.
nedegroup.com, I’ve set it as hostname
www.nedegroup.com have the following DNS record http://pastebin.com/89E7eB5e www.nutrizzio.com have the following DNS record http://pastebin.com/9hh9cWvZ
in iredmail admin nutrizzio.com was already added since I’ve set it as first virtual domain when configuring iredmail and I’ve just added nedegroup.com
I created two email addresses from iredmail admin hi@nutrizzio.com and contact@nedegroup.com
I tried to send and receive email from both of them to/from external email and also between them. It says message successfully sent, but nothing happens
Mail log can be found here http://146.185.143.52/mail.log
Can you please let me know what I am doing wrong ?
Hi I’ve followed the instructions and it rather didn’t work straight from the beginning because:
It showed up that reason was not enough memory - I tried that with smallest version 512MB all problems have gone after switching to 1GB
I hope this maybe help someone.
Bear in mind that DNS propagation could take up to 12, 24 or even 48 hours. You can check if your changes have been spread around the world and if everything is “green” with your config using free tools like this one: http://www.intodns.com/
Another thing to remember, when Greylisting is enabled, that the first incoming email from the given email address will be rejected at first attempt and allowed to pass through when delivering server will comeback again later. I’ve noticed that nowadays it took about one or two hours external servers to come back again with rejected delivery
from mail.log <code> Jan 14 13:52:08 mydomain.com postfix/smtpd[2009]: NOQUEUE: reject: RCPT from st11p00mm-asmtp004.mac.com[17.172.81.3]: 451 4.7.1 test@mydomain.com: Recipient address rejected: Greylisting in effect, please come back later; from=test@mac.com to=test@mydomain.com proto=ESMTP helo=<st11p00mm-asmtp004.mac.com> </code>
and hour later
<code> Jan 14 14:52:09 mydomain.com cbpolicyd[1983]: module=Greylisting, action=pass, host=17.172.81.3, helo=st11p00mm-asmtp004.mac.com, from=test@mac.com, to=test@mydomain.com, reason=authenticated </code>
Thanks
my ssl error :( please help me.
http://i.hizliresim.com/w1v2gY.png
http://i.hizliresim.com/KqMmWB.png
http://i.hizliresim.com/xA70kz.png
nginx not supported iredmail ( please help me
@Tural: That’s correct, iRedMail does not support nginx—you will have to install it on a new separate droplet.
Hi,
I have my domain name parked at Godaddy … and I want to have my own email server instance in digital ocean. Let say, I managed to install iRedMail according to this tutorial, my question is: How can I set this email server to become the MX (Mail Exchanger) server for my domain name in Godaddy?
Last time I set the value for MX in Godaddy DNS ZoneFile to point to Google mail server, and it works perfectly. And I want to be able to do the same but with my own email server.
Thanks
I solved SSL problem in another way. I’ve got my free Level 1 certificate from startssl.com It is totally free and renewable as opposed to 30 Days trial at InstantSSL. apache config is a bit different but described here http://www.startssl.com/?app=21 Make sure you install decrypted certificate (see FAQ), otherwise apache2 will ask for passphrase each time it starts.
I have LAMP installed on my server and i ended up installing iredMail after that. However, when i tried sending / receiving mail i get SMPT -1 connection error. I checked on iredMail site for a possible problem, and found that i was suppose to install iredMail on a fresh serverr…
My questions are :
Does this mean that i create a new Droplet and install iredmail on it? What would that mean to my domain name? Will i be using the same domain name? how will it all work. I want to be able to send emails using php to users and i also want users to be able to send email back… Will all this work with iredMail. I am a littel confused.
If anyone is interested in some iRedMail CLI tool i wrote something on http://www.vojcik.net/command-line-tool-for-iredmail-mysql-backend-only/
It’s for mysql backend only. Helpful if you need to import hundrets of domains and hundreds of emails into iRedMail.
I followed the steps but i could not make the send an email. I tried receive emails by sending email from gmail to account on server despite spend as much time i received the email. If i try to do the reverse (send email from my server) i dont have successfully.
I verified the DNS confing and DKIM/MX/SPF are seted, apparently all is ok.
What im doing wrong?
Hi guys,
need help. Installed iRedmail as suggested and sending mail is working fine. My issue is that I can send mail to any email adress, gmail, hotmail or any domain with a local tld no issues. However, I can’t receive emails from most of the email address. I was only able to receive from hotmail (didn’t check yahoo bdw) However, when I commented out gmail.com in /etc/postfix/helo_access.prc I was able to receive emails from gmail.
I have disabled greylisting as well. But, I still can’t receive emails from other domains. How can I receive emails from them? I get emails bounced back saying “No such user here”. But it is the same address that gets email from hotmail and gmail now.
Where should I check to fix this issue? I believe that the MX records are in orders since I can receive emails from hotmail and now gmail.
I get the following error when trying to run the Bash script:
I named the droplet pettetmail.com
The output from hostname is:
pettetmail.com
< ERROR > Please configure a fully qualified domain name (FQDN) in /etc/hosts before we go further.
What’s wrong?
@garry.pettet:
If hostname returns pettetmail.com, then the top line of /etc/hosts should look something like:
<pre> 127.0.0.1 pettetmail.com localhost localhost.localdomain </pre>
Hey Guys,
Btw if you installed this on Ubuntu 14.04 x64, and get error 500 (Internal Server Error) run these command and it will work.
<pre>
a2enconf iredadmin
/etc/init.d/apache2 restart
</pre>
Btw update in about two weeks will officially support Ubuntu 14.04 ;)
Source: <a href=“http://www.iredmail.org/forum/topic6650-iredmail-support-ubuntu-1404-lts-new-install-question.html#pc29428”>iRedMail Forum</a>
Thanks
Hi there, I can send emails but I don’t get the replies… does anyone know why? My domain is fully propagated since I had it for a long while although I set up iRedMail about 1h ago…
@yoelukL What’s your domain name?
i am trying to install iredmail and when i get to the part that i have to specify my first visual server when i type mydomain.com it does not being accepted, instead mydomain.com. (with dot at the end) it does, even tho it is the same as the server hostname mydomain.com. i continued the installation as it said but when i tried to log in at the iredadmin page with username postmaster@mydomain.com. it failed, also tried without the dot at the end and still nothing. At the email account page /mydomain.com/mail i can log in with postmaster@mydomain.com. what have i done wrong ?
@Kamal I had to disable clamav and amavis to postfix work properly. Any problem in disabling amavis and clamav?
How do you use the same virtual domain name as server hostname? I can’t enter the same during installation.
The guide also doesn’t show the MySQL configuration screen (I get a “Can’t connect to DB” error when I finish the whole procedure)
Also, there is a new iRedMail version (0.8.7).
I’ve read lots of comments saying they’re having issues receiving emails…
I’ve the problem that I cannot send emails, but I receive without problems
Any idea? Thanks!
Try checking if your droplet’s IP address is blacklisted on any spam lists: Email Blacklist Check - See if your server is blacklisted
My emails are not signed with dkim anyone solutions?
I think this would be an ideal application to have pre-made in the Applications image list for creating droplets. (I haven’t read all the comments, so maybe somebody else already suggested this.)
Awesome tutorial! Installed and working on Ubuntu 14.
I cannot instal this package:
The following packages have unmet dependencies: libapache2-mod-auth-mysql : Depends: apache2.2-common (>= 2.2.3-3) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Any ideas?
Already purged apache2, apache2-commons and bin
What version of Ubuntu are you using? (Run
lsb_release -a
).You can just skip that package, everything will work just as well without it.
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.5 LTS Release: 12.04 Codename: precise
How can I skip? The installation breaks when installing all packages (after setting parameters)
@kamaln7 is this correct for a subdomain config?
https://gist.github.com/imranismail/463736c413ffebf2f597
I can’t receive any mails.
Really helpful article! Thanks :D
I try to login to round mail and i get
cannot connect to storage server
why?
So this tutorial is based on an apache2 setup Since I choose nginx during iredmail setup I have to do some steps different regarding installing a commercial SSL certificate, e.g. tutorial advices
can I use the same syntax and just replace /apache2/ with nginx folders?
When I take a look at nginx folder all I find is /etc/nginx/sites-available/default Here the HTTPS server block is not even activated
Hi guys,
Great article. I’ve followed the instructions as much as possible (only difference being the hostname of the server was server.domain.name instead of just domain.name), however no matter what I do, i get this when I run an authentication verifier:
========================================================== Summary of Results
SPF check: pass DomainKeys check: neutral DKIM check: pass Sender-ID check: pass SpamAssassin check: ham
As a result, a lot of mail that I send gets classified as spam despite having a verified SSL cert. At first, I assumed it was a sytax problem with the DKIM, however I’ve checked with a fine tooth comb. Any thoughts?
Friend For the installation of iRedmail it is necessary to have a completely empty droplets without another system?
how could attach droplets I have a ruby on rails project with nginx where?
Thanks for the help
hello, everything ok until the step when i have to write the virtual domain name, it stays in the same window?
Thanks for your post, but when i try to install the new version of iRedMail, this appears
[ INFO ] Checking new version of iRedMail …
<< ERROR >> Your iRedMail version (0.9.5) is out of date, please << ERROR >> download the latest version and try again: << ERROR >> http://www.iredmail.org/download.html
Hello everyone,
recently our org required to have internal email system. i recommended some other like domino server and more but i found Ired mail. can i use it internally in my LAN without domain. because i install on ubuntu when it done the last URL for admin and mail was not accessible can anyone help me
Mail-in-a-Box is a free alternative & frankly they’re quite good & even can run on 512MB Droplet.
this is is still pretty accurate. but the enw version of the installer walks yout through it pretty well.
make sure you start on a fresh droplet other wise might have issues.
This comment has been deleted
Thank you so much.
port 25 is blocked so you can’t send emails, only receive.