MySQL + Dovecot + Postfix - able to send emails but not receive them

Discussion in 'Installation/Configuration' started by RobertF, Jun 30, 2016.

  1. RobertF

    RobertF New Member

    Have been pulling my hair out for quite a while now. I have configured a Postfix + Dovecot server. Originally when I had set it up I could receive emails but I couldn't send them. I ended up working out that I had an issue in the postfix file where I wasn't allowing [::1]/128 in mynetworks. Anyway since fixing that I can send, though I now can't receive any emails from the outside world.

    I did telnet on port 25 and created an email to come from an outside domain ( and the mailbox received it just fine. Though when I send the email from gmail it just doesn't seem to get there (though gmail receives emails I send from the mail server)

    I can also successfully send an email from one user on the server to another user on the server still using the roundcube webmail client (so not just through telnet).

    Am hoping its something stupid that I for some reason have just overlooked!

    Here is the postconf -n output

    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    command_directory =/usr/sbin
    compatibility_level =2
    daemon_directory =/usr/libexec/postfix
    data_directory =/var/lib/postfix
    debug_peer_level =2
    debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
    html_directory = no
    inet_interfaces =all
    inet_protocols =all
    mail_owner = postfix
    mailq_path =/usr/bin/mailq.postfix
    manpage_directory =/usr/share/man
    meta_directory =/etc/postfix
    mydestination = localhost
    mydomain =
    myhostname =
    mynetworks =,,[::1]/128
    myorigin =$mydomain
    newaliases_path =/usr/bin/newaliases.postfix
    queue_directory =/var/spool/postfix
    readme_directory =/usr/share/doc/postfix/README_FILES
    sample_directory =/usr/share/doc/postfix/samples
    sendmail_path =/usr/sbin/sendmail.postfix
    setgid_group = postdrop
    shlib_directory =/usr/lib64/postfix
    unknown_local_recipient_reject_code =550
    virtual_alias_maps = mysql:/etc/postfix/
    virtual_mailbox_domains = mysql:/etc/postfix/
    virtual_mailbox_maps = mysql:/etc/postfix/
    virtual_transport = lmtp:unix:private/dovecot-lmtp

    Here is the doveconf -n output

    # OS: Linux 4.2.3-300.fc23.x86_64 x86_64 Fedora release 23(Twenty Three) ext4
    auth_debug = yes
    auth_mechanisms = plain login
    auth_verbose = yes
    debug_log_path =/var/log/dovecot-debug.log
    info_log_path =/var/log/dovecot-info.log
    log_path =/var/log/dovecot.log
    mail_debug = yes
    mail_location = maildir:/var/mail/vhosts/%d/%n
    mail_privileged_group = mail
    mbox_write_locks = fcntl
    namespace inbox {
    inbox = yes
    location =
    mailbox Drafts {
    special_use =\Drafts
    mailbox Junk {
    special_use =\Junk
    mailbox Sent {
    special_use =\Sent
    mailbox "Sent Messages"{
    special_use =\Sent
    mailbox Trash {
    special_use =\Trash
    prefix =}
    passdb {
    args =/etc/dovecot/dovecot-sql.conf.ext
    driver = sql
    service auth-worker {user= vmail
    service auth {
    unix_listener /var/spool/postfix/private/auth {group= postfix
    mode =0666user= postfix
    unix_listener auth-userdb {
    mode =0600user= vmail
    }user= dovecot
    service imap-login {
    inet_listener imap {
    port =143}}
    service lmtp {
    unix_listener /var/spool/postfix/private/dovecot-lmtp {group= postfix
    mode =0600user= postfix
    ssl = required
    ssl_cert =</etc/pki/dovecot/certs/dovecot.pem
    ssl_cipher_list = PROFILE=SYSTEM
    ssl_key =</etc/pki/dovecot/private/dovecot.pem
    userdb {
    args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
    driver = static

    Any idea's?
    Last edited: Jul 5, 2016
  2. RobertF

    RobertF New Member

    Any clues here? Still struggling with this. Thanks guys
  3. RobertF

    RobertF New Member

    Actually... just worked it out. Had non-null bits in my IP address

Share This Page