can't receive emails..

Discussion in 'Installation/Configuration' started by CappellaioMatto, Jul 18, 2007.

  1. CappellaioMatto

    CappellaioMatto New Member

    Hello everyone,

    I installed ispconfig with success, i created a website and an email for the website. From this website i can send all the email i want, but i can't receive any email!

    Can anyone explain me what i have to do in order to be able to receive emails? :(

    follows the outputs
    Thank a lot


    the returned email, contains:
    Hi. This is the qmail-send program at fe-relay04.albacom.net.
    I'm afraid I wasn't able to deliver your message to the following addresses.
    This is a permanent error; I've given up. Sorry it didn't work out.

    <[email protected]>:
    80.88.87.23 does not like recipient.
    Remote host said: 554 <[email protected]>: Relay access denied
    Giving up on 80.88.87.23.
    --- Below this line is a copy of the message.
    Return-Path: <[email protected]>
    Received: (qmail 886 invoked by uid 508); 18 Jul 2007 13:14:48 -0000
    Received: from [email protected] by fe-relay04.albacom.net with qmail-scanner
    (rbl: ???. spamassassin: ???. Clear:RC:1(89.119.127.172):RBL:0:SA:0(1.5/7.5):.
    Processed in 10.397277 secs); 18 Jul 2007 13:14:48 -0000
    Received: from unknown (HELO ?127.0.0.1?) (89.119.127.172)
    by fe-relay04.albacom.net with ESMTP; 18 Jul 2007 13:14:37 -0000
    Message-ID: <[email protected]>
    Disposition-Notification-To: Cristi
    --- Rest of message truncated.


    cat /etc/postfix/local-host-names
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    # Version 1.0
    #
    ###################################
    localhost
    vm87023
    localhost.vm87023
    localhost.localdomain
    www.communicationmob.com
    www.yousong.it
    communicationmob.com
    yousong.it
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


    grep -v ^# /etc/postfix/main.cf
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    append_dot_mydomain = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
    myhostname = communicationmob.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = localhost, localhost.localdomain
    myorigin = /etc/mailname

    egrep '(reject|warning|error|fatal|panic):' /var/log/mail.log
    Jul 18 15:07:39 vm87023 postfix/master[17286]: warning: /usr/lib/postfix/showq: bad command startup -- throttling
    Jul 18 15:07:57 vm87023 postfix/smtpd[17383]: NOQUEUE: reject: RCPT from fe-relay03.albacom.net[217.220.57.137]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<fe-relay03.albacom.net>
    Jul 18 15:15:17 vm87023 postfix/smtpd[17686]: NOQUEUE: reject: RCPT from fe-relay03.albacom.net[217.220.57.137]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<fe-relay03.albacom.net>
    Jul 18 15:17:22 vm87023 postfix/smtpd[18053]: NOQUEUE: reject: RCPT from fe-relay04.albacom.net[217.220.57.147]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<fe-relay04.albacom.net>

    hostname -f
    vm87023

    and the ip server is
    80.88.87.23
     
    Last edited: Jul 18, 2007
  2. CappellaioMatto

    CappellaioMatto New Member

    sorry ... :(

    I've not properly read the guide and i use the commands:
    postconf -e 'home_mailbox = Maildir/'
    postconf -e 'mailbox_command ='
    /etc/init.d/postfix restart

    I don't want to use the Maildir under home, instead i want to use the Maildir under /var/www.. so..
    now, how can i reconfigure postfix in order to let it place the emails under /var/www?

    Thanks
     
  3. CappellaioMatto

    CappellaioMatto New Member

    I reinstalled Postfix and Procmail but the error is still there, and now i didn't change home_mailbox or mailbox_command.

    :(
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You don't have to configure this. Maildir is created in the user's homedir, so if the user's homedir is somewhere in /var/www, the Maildir is there, too.

    What's the output of
    Code:
    netstat -tap
    ? Any other errors in your mail log? Do you get any errors when you restart Postfix?
    Which distribution do you use?
     
  5. CappellaioMatto

    CappellaioMatto New Member

    Thanks for the reply falko.

    I'm using ubuntu dapper drake.

    the output of mail.log when i restart postfix is:
    Jul 19 16:30:12 vm87023 postfix/master[2497]: terminating on signal 15
    Jul 19 16:30:12 vm87023 postfix/master[5787]: daemon started -- version 2.2.10, configuration /etc/postfix

    the output of netstat -tap is:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:smux *:* LISTEN 2021/snmpd
    tcp 0 0 *:mysql *:* LISTEN 1869/mysqld
    tcp 0 0 *:81 *:* LISTEN 2158/ispconfig_http
    tcp 0 0 *:ftp *:* LISTEN 2556/proftpd: (acce
    tcp 0 0 vm87023:domain *:* LISTEN 2540/named
    tcp 0 0 localhost:domain *:* LISTEN 2540/named
    tcp 0 0 *:smtp *:* LISTEN 5787/master
    tcp 0 0 localhost:953 *:* LISTEN 2540/named
    tcp6 0 0 *:imaps *:* LISTEN 1743/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 1778/couriertcpd
    tcp6 0 0 *:pop3 *:* LISTEN 1758/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 1723/couriertcpd
    tcp6 0 0 *:www *:* LISTEN 2405/apache2
    tcp6 0 0 *:ssh *:* LISTEN 2035/sshd
    tcp6 0 0 *:smtp *:* LISTEN 5787/master
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 2540/named
    tcp6 0 0 *:https *:* LISTEN 2405/apache2
    tcp6 0 2224 vm87023:ssh ::ffff:89.119.127:56938 ESTABLISHED5653/1

    Thanks for the help
     
    Last edited: Jul 19, 2007
  6. CappellaioMatto

    CappellaioMatto New Member

    Knows anyone what's the problem?
    I searched on the forum, but i couldn't find any answer... :(
     
  7. edge

    edge Active Member Moderator

    To me it looks like the MX record in both cassiopea.it and nic.it are not set to your server.

    Try to change it, and test again.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Send a mail to your server and at the same time take a look at /var/log/mail.log. Do you see any action there?
     
  9. CappellaioMatto

    CappellaioMatto New Member

    Thanks both for the replies. :)

    I tried it. This is the output of mail.log while i was sending the email:
    Jul 20 16:58:21 vm87023 postfix/smtpd[27509]: connect from fe-relay03.albacom.net[217.220.57.137]
    Jul 20 16:58:21 vm87023 postfix/smtpd[27509]: NOQUEUE: reject: RCPT from fe-relay03.albacom.net[217.220.57.137]: 554 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<fe-relay03.albacom.net>
    Jul 20 16:58:21 vm87023 postfix/smtpd[27509]: disconnect from fe-relay03.albacom.net[217.220.57.137]

    I didn't understand why he send a 554 error, because the site is on this server, infact i created a domain (without checking Create DNS or Create DNS-MX), and an user that has the email addres [email protected].
    Is it correct or i missed something?

    Thanks
     
    Last edited: Jul 20, 2007
  10. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    postconf -e 'mydestination = /etc/postfix/local-host-names'
    /etc/init.d/postfix restart
     
  11. CappellaioMatto

    CappellaioMatto New Member

    Falko you're the best!! :D

    Now it works perfectly, thanks a lot!! :)
     

Share This Page