Hi,
I am trying to setup my own mail server to serve my personal email address, “me@mydomain.com”… I don’t plan on having any other email accounts on this server aside from this one.
What I did…
Install Postfix for smtp… https://help.ubuntu.com/community/Postfix Install Dovecot for IMAP… https://help.ubuntu.com/10.04/serverguide/dovecot-server.html Install Rainloop for webmail…http://rainloop.net/docs/installation/
The Zone file for my domain… mydomain.com
-----------Begin Zone File-------------- $TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.mydomain.com. ( 1395759915 ; last update: 2014-03-25 15:05:15 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. MX 5 mydomain.com. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. mydomain.com. TXT google-site-verification=SUaAi0AD-OTTO1y4mzyqMcKu72WFpGTiLgNiNxYYS1o @ TXT “v=spf1 a include:_spf.leoadhemartan.com ~all” www CNAME @ @ IN A 162.243.141.208
------------End Zone File----------------
The Zone File for my webmail domain…
-----------Begin Zone File-------------- $TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.webmail.mydomain.com. ( 1395679621 ; last update: 2014-03-24 16:47:01 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 162.243.141.208
------------End Zone File----------------
What I can do…
I can send email with no issues through the terminal via the command,
echo “This is a test message.” | mail -s Hello mygmailadd@gmail.com
I can also send email through Heirloom mailx
I can recieve email from my root user account (I send email to me@mydomain.com, using the terminal command)
I can login and view my inbox through my webmail.
What I can’t do…
Recieve email sent from my gmail address. (no mailer:daemon error message from my gmail at the time of sending this ticket.) Send email from my webmail app (authentication failed).
Is there something wrong with my configurations?
Thanks
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!
still can’t receimails… <br>I can’t connect to mydomain at port 25 through telnet (connect failed) <br> <br>this is the output of my netstat -plntu command <br> <br>http://pastebin.com/XiXDJ6bX <br> <br>
Update: <br> <br>I am now able to send email through my rainloop webmail account… <br> <br>To do this, I removed postfix from chroot and set the saslauthd to Default. Now my only problem is receiving email. <br> <br>
my postfix main conf <br> <br> GNU nano 2.2.6 File: /etc/postfix/main.cf <br> <br># See /usr/share/postfix/main.cf.dist for a commented, more complete version <br> <br> <br># Debian specific: Specifying a file name will cause the first <br># line of that file to be used as the name. The Debian default <br># is /etc/mailname. <br>#myorigin = /etc/mailname <br> <br>smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) <br>biff = no <br> <br># appending .domain is the MUA’s job. <br>append_dot_mydomain = no <br> <br># Uncomment the next line to generate “delayed mail” warnings <br>#delay_warning_time = 4h <br> <br>readme_directory = no <br> <br># TLS parameters <br>smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt <br>smtpd_tls_key_file = /etc/ssl/private/smtpd.key <br>smtpd_use_tls=yes <br>smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache <br>smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache <br> <br># See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for <br># information on enabling SSL in the smtp client. <br> <br>myhostname = leoadhemartan.com <br>alias_maps = hash:/etc/aliases <br>alias_database = hash:/etc/aliases <br>myorigin = /etc/mailname <br>mydestination = leoadhemartan.com, localhost, localhost.localdomain, localhost <br>relayhost = <br>mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 <br>mailbox_command = <br>mailbox_size_limit = 0 <br>recipient_delimiter = + <br>inet_interfaces = all <br>inet_interfaces = $myhostname <br>inet_interfaces = $myhostname, localhost <br>inet_protocols = all <br>home_mailbox = Maildir/ <br>smtpd_sasl_local_domain = leoadhemartan.com <br>smtpd_sasl_auth_enable = yes <br>smtpd_sasl_security_options = noanonymous <br>broken_sasl_auth_clients = yes <br>smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_sender_login_mismatch <br>smtp_tls_security_level = may <br>smtpd_tls_security_level = may <br>smtpd_tls_auth_only = no <br>smtp_tls_note_starttls_offer = yes <br>smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem <br>smtpd_tls_loglevel = 1 <br>smtpd_tls_received_header = yes <br>smtpd_tls_session_cache_timeout = 3600s <br>tls_random_source = dev:/dev/urandom <br># DKIM <br>milter_default_action = accept <br>milter_protocol = 2 <br>smtpd_milters = inet:localhost:8891 <br>non_smtpd_milters = inet:localhost:8891
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.