POP3 login error /Suse perfect set up 9.3

Discussion in 'Server Operation' started by gimhan90, Feb 6, 2006.

  1. gimhan90

    gimhan90 New Member

    Hi folks,

    Please have a look at this error.This was happend when i did the following thing ?

    # telnet cosmoforge.com pop3
    Trying 66.240.aaa.xxx...
    Connected to cosmoforge.com.
    Escape character is '^]'.
    +OK Hello there.
    user web3_lasitha
    +OK Password required.
    pass lcg123
    -ERR Maildir: No such file or directory
    Connection closed by foreign host.

    Thx,
    gim

    [
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to send an email to the account before you can fetch emails with pop3. The maildir is created when the first email arrives.

    Dont forget to check the maildir checkbox in ISPConfig under management > server > settings on the mail tab.
     
  3. gimhan90

    gimhan90 New Member

    POP3 access

    Sorry i can't send the mail

    Feb 5 22:28:13 linux postfix/smtpd[18625]: NOQUEUE: reject: RCPT from unknown[220.247.234.159]: 554 <unknown[220.247.234.159]>: Client host rejected: Access denied; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<shyamal>

    This is the error given by outlook.Result is same for telnet.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. gimhan90

    gimhan90 New Member

    I tried to send a mail to [email protected] from my gmail account ([email protected])

    (Cretaed user through ISP - [email protected]
    www.cosmoforge.com - registered domin through DNS service provider
    .)

    This is an automatically generated Delivery Status Notification
    Delivery to the following recipient failed permanently:

    Here is the Result
    Technical details of permanent failure:
    PERM_FAILURE: SMTP Error (state 9): 554 <xproxy.gmail.com[66.249.82.201]>: Client host rejected: Access denied
    ----- Original message -----

    Received: by 10.70.18.12 with SMTP id 12mr6837401wxr;
    Mon, 06 Feb 2006 19:58:51 -0800 (PST)
    Received: by 10.70.130.18 with HTTP; Mon, 6 Feb 2006 19:58:51 -0800 (PST)
    Message-ID: <[email protected]>
    Date: Tue, 7 Feb 2006 09:58:51 +0600
    From: G i m h a n <[email protected]>
    To: [email protected]
    Subject: test
    MIME-Version: 1.0
    Content-Type: text/plain; charset=WINDOWS-1252
    Content-Transfer-Encoding: base64
    Content-Disposition: inline

    LS0KCiAgLS0tLS0tLS0tbzAwby0tKF8pLS1vMDBvLS0tLS0tLS0tLS0tLS0tLS0KICAgR2ltaGFu
    IFByaXlhbnRoYS9UZWFtIFZpcnR1c2GZCi0tLS0tLW9vbzAtLS0tLS0tLS0tLS0tLS0tLS0tLS0t
    LS0tLS0tLS0tCiAgICAoICAgKSAgICAgMG9vbwogICAgIFwgKCAgICAgICggICApCiAgICAgIFxf
    KSAgICAgICkgLwogICAgICAgICAgICAgIChfLwo=
     
  6. falko

    falko Super Moderator ISPConfig Developer

    You have an MX record for cosmoforge.com, but the MX record has no A record:

    Code:
    ~# dig mx cosmoforge.com
    
    ; <<>> DiG 9.2.1 <<>> mx cosmoforge.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12794
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;cosmoforge.com.                        IN      MX
    
    ;; ANSWER SECTION:
    cosmoforge.com.         600     IN      MX      10 [B][COLOR="Red"]q0.cosmoforge.com[/COLOR][/B].
    
    ;; AUTHORITY SECTION:
    cosmoforge.com.         600     IN      NS      ns2.netfirms.com.
    cosmoforge.com.         600     IN      NS      ns1.netfirms.com.
    
    ;; ADDITIONAL SECTION:
    ns1.netfirms.com.       85551   IN      A       64.34.74.221
    
    ;; Query time: 253 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Tue Feb  7 11:56:39 2006
    ;; MSG SIZE  rcvd: 112
    
    mh1:~# dig q0.cosmoforge.com
    
    ; <<>> DiG 9.2.1 <<>> q0.cosmoforge.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26855
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;q0.cosmoforge.com.             IN      A
    
    ;; AUTHORITY SECTION:
    cosmoforge.com.         2560    IN      SOA     ns1.netfirms.com. hostmaster.cosmoforge.com. 1139305407 16384 2048 1048576 2560
    
    ;; Query time: 137 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Tue Feb  7 11:57:05 2006
    ;; MSG SIZE  rcvd: 95
    Mail for cosmoforge.com goes to q0.cosmoforge.com, but q0.cosmoforge.com doesn't exist. It has no A record which means mails can't be delivered!
     
  7. gimhan90

    gimhan90 New Member

    HI falko
    Thanks.I'l fix it and give you a feedback
     
  8. gimhan90

    gimhan90 New Member




    I replaced the q0.cosmoforge.com with A recoed . Still can't send a mail to [email protected] . same error ....
     
  9. gimhan90

    gimhan90 New Member

    Sending first email to postfix

    HI...
    I tried to send an email to the account.Here i got from postmaster

    Failed address: [email protected]

    --- Session Transcript ---
    Wed 2006-02-08 12:28:28: Parsing Message <xxxxxxxxxxxxxxxxxx\pd50001261254.msg>
    Wed 2006-02-08 12:28:28: From: [email protected]
    Wed 2006-02-08 12:28:28: To: [email protected]
    Wed 2006-02-08 12:28:28: Subject: TEST
    Wed 2006-02-08 12:28:28: Message-ID: <op.s4nmabx5hhhxqy@shyamal>
    Wed 2006-02-08 12:28:28: MX-record resolution of [cosmoforge.com] in progress (DNS Server:
    161.76.9.1)...
    Wed 2006-02-08 12:28:28: * P=010 D=cosmoforge.com TTL=(0) MX=[mail.cosmoforge.com]
    {66.240.254.144}
    Wed 2006-02-08 12:28:28: Attempting MX: P=010 D=cosmoforge.com TTL=(0) MX=[mail.cosmoforge.com]
    {66.240.254.144}
    Wed 2006-02-08 12:28:28: Attempting SMTP connection to [66.240.254.144 : 25]
    Wed 2006-02-08 12:28:28: Waiting for socket connection...
    Wed 2006-02-08 12:28:28: Socket connection established (161.76.28.49 : 3720 -> 66.240.254.144 :
    25)
    Wed 2006-02-08 12:28:28: Waiting for protocol initiation...
    Wed 2006-02-08 12:28:29: <-- 220 ****************************
    Wed 2006-02-08 12:28:29: --> EHLO mail.codegen.it
    Wed 2006-02-08 12:28:29: <-- 250-cosmoforge.com
    Wed 2006-02-08 12:28:29: <-- 250-PIPELINING
    Wed 2006-02-08 12:28:29: <-- 250-SIZE 10240000
    Wed 2006-02-08 12:28:29: <-- 250-VRFY
    Wed 2006-02-08 12:28:29: <-- 250-ETRN
    Wed 2006-02-08 12:28:29: <-- 250-XXXXXXXA
    Wed 2006-02-08 12:28:29: <-- 250-AUTH PLAIN LOGIN
    Wed 2006-02-08 12:28:29: <-- 250 8BITMIME
    Wed 2006-02-08 12:28:29: --> MAIL From:<[email protected]> SIZE=1544
    Wed 2006-02-08 12:28:30: <-- 250 Ok
    Wed 2006-02-08 12:28:30: --> RCPT To:<[email protected]>
    Wed 2006-02-08 12:28:30: <-- 554 <mail.codegen.it[161.76.28.49]>: Client host rejected: Access
    denied

    What is happening here?
     
  10. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/postfix/main.cf?
     
  11. gimhan90

    gimhan90 New Member




    # SOFT BOUNCE
    #

    #
    #soft_bounce = no

    # LOCAL PATHNAME INFORMATION
    #

    # The command_directory parameter specifies the location of all
    # postXXX commands.
    #
    command_directory = /usr/sbin

    # The daemon_directory parameter specifies the location of all Postfix

    #
    daemon_directory = /usr/lib/postfix

    # QUEUE AND PROCESS OWNERSHIP
    .

    #default_privs = nobody

    # INTERNET HOST AND DOMAIN NAMES
    #

    #
    myhostname =$mydomain
    #myhostname = virtual.domain.tld


    #
    mydomain =cosmoforge.com

    # SENDING MAIL
    #

    #
    myorigin = $myhostname
    #myorigin = mail.cosmoforge.com

    # RECEIVING MAIL


    inet_interfaces = all
    #inet_interfaces = $myhostname, localhost

    # The proxy_interfaces parameter specifies the network interface

    #
    #proxy_interfaces =
    #proxy_interfaces = 1.2.3.4

    # The #mydestination parameter specifies the list of domains that this


    # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
    #
    #mydestination = /etc/postfix/local-host-names
    ##mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    ##mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
    # mail.$mydomain, www.$mydomain, ftp.$mydomain

    # REJECTING MAIL FOR UNKNOWN LOCAL USERS
    #

    #
    # The right-hand side of the lookup tables is conveniently ignored.
    # In the left-hand side, specify a bare username, an @domain.tld
    # wild-card, or specify a [email protected] address.
    #
    local_recipient_maps = unix:passwd.byname $alias_maps
    #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
    #local_recipient_maps =


    # local_recipient_maps settings are OK.
    #
    unknown_local_recipient_reject_code = 550

    # TRUST AND RELAY CONTROL


    #

    mynetworks_style = class
    #mynetworks_style = subnet
    #mynetworks_style = host

    # Alternatively, you can specify the mynetworks list by hand, in
    #
    mynetworks = 168.100.189.0/28, 127.0.0.0/8
    #mynetworks = $config_directory/mynetworks
    #mynetworks = hash:/etc/postfix/network_table

    # The relay_domains parameter restricts what destinations this system will

    # Specify a list of hosts or domains, /file/name patterns or type:name
    # lookup tables, separated by commas and/or whitespace. Continue
    # long lines by starting the next line with whitespace. A file name
    # is replaced by its contents; a type:name table is matched when a
    # (parent) domain appears as lookup key.
    #
    #
    #
    relay_domains = $mydestination
    # NOTE: Postfix will not automatically forward mail for domains that
    # list this system as their primary or backup MX host. See the
    # permit_mx_backup restriction description in postconf(5).
    #

    # INTERNET OR INTRANET


    #relayhost = $mydomain
    #relayhost = [cosmoforge.com]:25
    #relayhost = [mailserver.isp.tld]
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]

    # REJECTING UNKNOWN RELAY USERS
    #

    #relay_recipient_maps = hash:/etc/postfix/relay_recipients

    # INPUT RATE CONTROL
    #
    #
    # Specify 0 to disable the feature. Valid delays are 0..10.
    #
    #in_flow_delay = 1s

    # ADDRESS REWRITING
    #
    # The ADDRESS_REWRITING_README document gives information about
    # address masquerading or other forms of address rewriting including
    # username->Firstname.Lastname mapping.

    # ADDRESS REDIRECTION (VIRTUAL DOMAIN)
    #
    # The VIRTUAL_README document gives information about the many forms
    # of domain hosting that Postfix supports.

    # "USER HAS MOVED" BOUNCE MESSAGES
    #
    # See the discussion in the ADDRESS_REWRITING_README document.

    # TRANSPORT MAP
    #
    # See the discussion in the ADDRESS_REWRITING_README document.

    # ALIAS DATABASE
    #
    #
    #alias_maps = dbm:/etc/aliases
    alias_maps = hash:/etc/aliases
    #alias_maps = hash:/etc/aliases, nis:mail.aliases
    #alias_maps = netinfo:/aliases


    #alias_database = dbm:/etc/aliases
    #alias_database = dbm:/etc/mail/aliases
    alias_database = hash:/etc/aliases
    #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

    # ADDRESS EXTENSIONS (e.g., user+foo)
    #recipient_delimiter = +

    # DELIVERY TO MAILBOX
    #

    #
    #home_mailbox = /var/mail
    home_mailbox = Maildir/

    # The mail_spool_directory parameter specifies the directory where
    # UNIX-style mailboxes are kept. The default setting depends on the
    # system type.
    #
    #mail_spool_directory = /var/mail
    mail_spool_directory = /var/spool/mail


    mailbox_command =
    #mailbox_command = /some/where/procmail -a "$EXTENSION"


    #
    #mailbox_transport = lmtp:unix:/file/name
    #mailbox_transport = cyrus

    # The fallback_transport specifies the optional transport in master.cf
    # to use for recipients that are not found in the UNIX passwd database.
    # This parameter has precedence over the luser_relay parameter.
    #
    # Specify a string of the form transport:nexthop, where transport is
    # the name of a mail delivery transport defined in master.cf. The
    # :nexthop part is optional. For more details see the samp

    virtual_alias_domains = hash:/etc/postfix/virtual
    #virtual_alias_maps = hash:/etc/postfix/virtual
    transport_maps = hash:/etc/postfix/transport
    smtpd_sasl_local_domain =$myhostname
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous


    #
    setgid_group = mail
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    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 = /etc/postfix/local-host-names
     
  12. gimhan90

    gimhan90 New Member

    /etc/postfix/main.cf are here with


    above i have attched the main.cf .

     
  13. gimhan90

    gimhan90 New Member

    Herewith i have attched the main.cf . Please look at this and help me to solve the problem .
    thx
     
  14. falko

    falko Super Moderator ISPConfig Developer

    Hm, I can't find anything wrong in it. You can try to comment out this line:

    Code:
    virtual_alias_domains = hash:/etc/postfix/virtual
    and restart Postfix.
     
  15. gimhan90

    gimhan90 New Member


    additionaly ,

    mynetworks = 168.100.189.0/28, 127.0.0.0/8
    do i need to put the ip of postfix server runs here ?
     
  16. falko

    falko Super Moderator ISPConfig Developer

    No, it's already in there (127.0.0.0/8).
     
  17. gimhan90

    gimhan90 New Member


    I tried as u mentioned above , But got the same error again, :( .Any hints to resolve the issue sir?

    Delivery to the following recipient failed permanently:

    [email protected]

    Technical details of permanent failure:
    PERM_FAILURE: SMTP Error (state 9): 554 <xproxy.gmail.com[66.249.82.205]>: Client host rejected: Access denied

    ----- Original message -----

    Received: by 10.70.8.11 with SMTP id 11mr3198198wxh;
    Mon, 13 Feb 2006 20:30:23 -0800 (PST)
    Received: by 10.70.130.18 with HTTP; Mon, 13 Feb 2006 20:30:23 -0800 (PST)
    Message-ID: <[email protected]>
    Date: Tue, 14 Feb 2006 10:30:23 +0600
    From: G i m h a n <[email protected]>
    To: [email protected]
    Subject: test
    MIME-Version: 1.0
    Content-Type: text/plain; charset=WINDOWS-1252
    Content-Transfer-Encoding: base64
    Content-Disposition: inline

    LS0KCiAgLS0tLS0tLS0tbzAwby0tKF8pLS1vMDBvLS0tLS0tLS0tLS0tLS0tLS0KICAgR2ltaGFu
    IFByaXlhbnRoYS9UZWFtIFZpcnR1c2GZCi0tLS0tLW9vbzAtLS0tLS0tLS0tLS0tLS0tLS0tLS0t
    LS0tLS0tLS0tCiAgICAoICAgKSAgICAgMG9vbwogICAgIFwgKCAgICAgICggICApCiAgICAgIFxf
    KSAgICAgICkgLwogICAgICAgICAgICAgIChfLwo=
     
  18. falko

    falko Super Moderator ISPConfig Developer

    I've just done a telnet:

    Code:
    ~# telnet mail.cosmoforge.com 25
    Trying 66.240.254.144...
    Connected to [B][COLOR="Red"]su93254144.aspadmin.net[/COLOR][/B].
    Escape character is '^]'.
    220 su93254144.cosmoforge.com ESMTP Postfix
    ehlo localhost
    250-su93254144.cosmoforge.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250 8BITMIME
    quit
    221 Bye
    Connection closed by foreign host.
    The problem might be that su93254144.aspadmin.net doesn't exist in DNS:

    Code:
    ~# dig su93254144.aspadmin.net
    
    ; <<>> DiG 9.2.4 <<>> su93254144.aspadmin.net
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61140
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;su93254144.aspadmin.net.       IN      A
    
    ;; AUTHORITY SECTION:
    aspadmin.net.           3600    IN      SOA     ns1.aspadmin.com. domain_control.aspadmin.net. 1138989342 43200 7200 1209600 43200
    
    ;; Query time: 153 msec
    ;; SERVER: 145.253.2.75#53(145.253.2.75)
    ;; WHEN: Tue Feb 14 19:49:29 2006
    ;; MSG SIZE  rcvd: 108
     
  19. gimhan90

    gimhan90 New Member





    su93254144:/etc/postfix # telnet mail.cosmoforge.com 25
    Trying 66.240.254.14
    Connected to mail.cosmoforge.com.
    Escape character is '^]'.
    220 cosmoforge.com ESMTP Postfix
    ehlo localhost
    250-cosmoforge.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250 8BITMIME
    quit
    221 Bye
    Connection closed by foreign host.



    In my main.cf i put like below,

    myhostname = su93254144.$mydomain
    mydomain =cosmoforge.com

    su93254144 is the machine name that they provided.

    ( Last login: Mon Feb 13 22:15:20 2006 from 220.247.234.159
    Have a lot of fun...
    su93254144:~ #
    )

    Are those configurations wrong or ..? ( mydomain & myhostname)
    or is it enough to put $mydoian for myhostname ( i.e myhostname = $mydomain
    I am getting dns service from a DNS service provider .
     
    Last edited: Feb 15, 2006
  20. falko

    falko Super Moderator ISPConfig Developer

    Now I'm seeing this:

    Code:
    ~# telnet mail.cosmoforge.com 25
    Trying 66.240.254.144...
    Connected to su93254144.aspadmin.net.
    Escape character is '^]'.
    220 [B][COLOR="Red"]Server2.local[/COLOR][/B] ESMTP Postfix
    ehlo localhost
    250-Server2.local
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-AUTH PLAIN LOGIN
    250 8BITMIME
    quit
    221 Bye
    Connection closed by foreign host.
    which can't be correct.

    Please run

    Code:
    postconf -e 'myhostname = mail.$mydomain'
    postconf -e 'mydomain =cosmoforge.com'
    and restart Postfix.
     

Share This Page