Find the answer to your Linux question:
Results 1 to 6 of 6
I have lenny with postfix, countier-imap, squirrelmail installed i can send emails but i can not receive any emails. Do you think what is wrong ?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    4

    Postfix cannot receive emails


    I have lenny with postfix, countier-imap, squirrelmail installed i can send emails but i can not receive any emails. Do you think what is wrong ?

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    Considering all information you have provided something definitely is wrong.

    Let's start from beginning, do you have a valid MX record?

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    4
    my DNS MX records

    MX mail.keijohostel.fi 10
    A 77.240.22.241 0
    mail A 77.240.22.241 0
    www A 77.240.22.241 0


    main.cf :

    # Debian specific: Specifying a file name will cause the first
    # line of that file to be used as the name. The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname

    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    readme_directory = no

    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.

    myhostname = vcust376.louhi.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = vcust376.louhi.net, localhost.louhi.net, localhost, keijohostel.fi, mail.keijohostel.fi
    relayhost = smtp.eunet.fi
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all

    home_mailbox = Maildir/

  4. #4
    Just Joined!
    Join Date
    Jul 2010
    Posts
    4
    mail.log :

    Jul 31 12:23:56 vcust376 postfix/smtpd[22144]: connect from mta-out.inet.fi[195.156.147.13]
    Jul 31 12:23:56 vcust376 postfix/smtpd[22144]: 1E53B21D54: client=mta-out.inet.fi[195.156.147.13]
    Jul 31 12:23:56 vcust376 postfix/cleanup[22149]: 1E53B21D54: message-id=<4C53EC01.7060309@kolumbus.fi>
    Jul 31 12:23:56 vcust376 postfix/qmgr[22134]: 1E53B21D54: from=<katjakajan@kolumbus.fi>, size=806, nrcpt=1 (queue active)
    Jul 31 12:23:56 vcust376 postfix/local[22150]: 1E53B21D54: to=<pekka.hagman@keijohostel.fi>, relay=local, delay=0.04, delays=0.02/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTEN$
    Jul 31 12:23:56 vcust376 postfix/qmgr[22134]: 1E53B21D54: removed
    Jul 31 12:24:07 vcust376 imapd: LOGOUT, user=pekka.hagman, ip=[::ffff:80.220.81.123], headers=0, body=0, rcvd=629, sent=395, time=102
    Jul 31 12:24:07 vcust376 imapd: LOGOUT, user=pekka.hagman, ip=[::ffff:80.220.81.123], headers=232, body=398, rcvd=392, sent=1851, time=64
    Jul 31 12:24:07 vcust376 imapd: LOGOUT, user=pekka.hagman, ip=[::ffff:80.220.81.123], headers=0, body=0, rcvd=248, sent=1016, time=110
    Jul 31 12:24:13 vcust376 imapd: Connection, ip=[::ffff:80.220.81.123]

  5. #5
    Just Joined!
    Join Date
    Jul 2010
    Posts
    4

    Resolved

    Resolved!

    Problem was procmail

    /etc/procmailrc file was missing.

    procmailrc must have:

    VERBOSE=yes

    # Now run as the recipient user
    # DROPPRIVS=yes

    MAILDIR=$HOME/Maildir
    DEFAULT=$MAILDIR/cur
    # Use a seperate directory to store reciepes and logs
    PMDIR=$HOME

    # Tell procmail where to put the log file
    LOGFILE=$PMDIR/procmail.log

    this tells the procmail to move received mails to:
    /home/user/Maildir/cur

    so courier-imap and squirrelmail can reach the mails

    ps. sorry about my bad english

  6. #6
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    Good job! Glad you got it sorted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •