ISPConfig3 Centos 5.4 i386 - Can not send mail in Squirrel

Discussion in 'Installation/Configuration' started by minhphuoc275, Apr 8, 2010.

  1. minhphuoc275

    minhphuoc275 New Member

    Hi all,

    After installing follow this link:
    http://www.howtoforge.com/perfect-server-centos-5.2-ispconfig-3

    I can create site domain, sub-domain, send and receive mail in client
    pops --> 995 and smtp 465 TSL.

    But I got a problem in Squirrel mail, I can receive mail but can not send email internal, for ex:

    abc@domainA.com --> can not send bcd@domainA.com and also can not send to itself

    here is log fail sending:

    Apr 8 14:48:42 hostA sendmail[4892]: o387mf7R004892: Authentication-Warning: hostA.domainA.info: apache set sender to www@domainA.info using -f
    Apr 8 14:48:42 hostA sendmail[4892]: o387mf7R004892: from=www@domainA.info, size=575, class=0, nrcpts=2, msgid=<4083.113.161.80.118.1270712921.squirrel@domainA.info>, relay=apache@localhost
    Apr 8 14:48:42 hostA postfix/smtpd[4893]: connect from localhost.localdomain[127.0.0.1]
    Apr 8 14:48:42 hostA sendmail[4892]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
    Apr 8 14:48:42 hostA postfix/smtpd[4893]: 496DF328463: client=localhost.localdomain[127.0.0.1]
    Apr 8 14:48:42 hostA postfix/smtpd[4893]: 496DF328463: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <phuoctm@hostA.domainA.info>: Recipient address rejected: User unknown in local recipient table; from=<www@domainA.info> to=<phuoctm@hostA.domainA.info> proto=ESMTP helo=<hostA.domainA.info>
    Apr 8 14:48:42 hostA sendmail[4892]: o387mf7R004892: to=phuoctm@domainA.info, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=60575, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
    Apr 8 14:48:42 hostA postfix/cleanup[4904]: 496DF328463: message-id=<4083.xxx.xxx.xxx.xxx.1270712921.squirrel@domainA.info>
    Apr 8 14:48:42 hostA postfix/qmgr[2891]: 496DF328463: from=<www@domainA.info>, size=1057, nrcpt=1 (queue active)
    Apr 8 14:48:42 hostA sendmail[4892]: o387mf7R004892: to=www@domainA.info, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=60575, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 496DF328463)
    Apr 8 14:48:42 hostA sendmail[4892]: o387mf7R004892: o387mf7S004892: DSN: User unknown
    Apr 8 14:48:42 hostA postfix/local[4906]: 496DF328463: to=<root@hostA.domainA.info>, orig_to=<www@hostA.domainA.info>, relay=local, delay=0.14, delays=0.08/0.04/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
    Apr 8 14:48:42 hostA postfix/qmgr[2891]: 496DF328463: removed
    Apr 8 14:48:42 hostA postfix/smtpd[4893]: 5E2DD328466: client=localhost.localdomain[127.0.0.1]
    Apr 8 14:48:42 hostA postfix/cleanup[4904]: 5E2DD328466: message-id=<201004080748.o387mf7S004892@hostA.domainA.info>
    Apr 8 14:48:42 hostA postfix/qmgr[2891]: 5E2DD328466: from=<>, size=3090, nrcpt=1 (queue active)
    Apr 8 14:48:42 hostA sendmail[4892]: o387mf7S004892: to=www@domainA.info, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31599, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 5E2DD328466)
    Apr 8 14:48:42 hostA postfix/smtpd[4893]: disconnect from localhost.localdomain[127.0.0.1]
    Apr 8 14:48:42 hostA postfix/local[4906]: 5E2DD328466: to=<root@hostA.domainA.info>, orig_to=<www@hostA.domainA.info>, relay=local, delay=0.09, delays=0.06/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
    Apr 8 14:48:42 hostA postfix/qmgr[2891]: 5E2DD328466: removed


    Kindly to help to resolve this problem,

    thanks,

    cheers,
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Make sure that you created the domain as email domain and not just as website and then create a email mailbox for this domain. Also be aware that you can not create a email domain that is the same then the hostname of the server as postfix does not know how to deliver the email then.
     
  3. minhphuoc275

    minhphuoc275 New Member

    Hi Till,

    Thank for your reply, and yes, I have created domain mail and mailboxes after that, so that i can send mail by pop3 and smtp in mail client, i just got problem when i use squirrel mail to send the email to internal.

    domain mail: swebcom.info
    mailboxes: phuoctm@swebcom.info and www@swebcom.info
    hostname: sw-centos-01.swebcom.info

    And I see in log file:

    Apr 8 16:39:50 sw-centos-01 sendmail[10034]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
    --------------------
    Apr 8 16:39:50 sw-centos-01 postfix/smtpd[10035]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <phuoctm@sw-centos-01.swebcom.info>: Recipient address rejected: User unknown in local recipient table; from=<phuoctm@swebcom.info> to=<phuoctm@sw-centos-01.swebcom.info> proto=ESMTP helo=<sw-centos-01.swebcom.info>
    ------------------------
    Apr 8 16:39:50 sw-centos-01 sendmail[10034]: o389dodH010034: to=phuoctm@swebcom.info, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30556, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown

    ================
    I don't know why it understand like this:
    from=<phuoctm@swebcom.info> to=<phuoctm@sw-centos-01.swebcom.info>

    I think we can fix it some where in local recipient table

    cheers,
    Phuoc Tran
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    No, its not related to that. I guess you have a conflicting Linux system user.

    Please post the output of:

    grep phuoctm /etc/passwd
     
  5. minhphuoc275

    minhphuoc275 New Member

    Hi Till,

    This user create by ISPConfig:

    I get this information in database: table mail_user

    mailuser_id sys_userid sys_groupid sys_perm_user sys_perm_group sys_perm_other server_id email password name uid gid
    1 2 2 riud riud 1 phuoctm@swebcom.info password here Tran Minh Phuoc 5000 5000 /var/vmail/swebcom.info/phuoctm 104857600 /var/vmail
    2 2 2 riud riud 1 www@swebcom.info password here Admin 5000 5000 /var/vmail/swebcom.info/www 104857600 /var/vmail

    certainly, grep phuoctm /etc/passwd --> no thing here,

    if you want any information, pls let me know,

    thank so much,
    Phuoc
     

Share This Page