Sending mail from billing tool fails

Discussion in 'Installation/Configuration' started by ironhost, Jun 21, 2012.

  1. ironhost

    ironhost New Member

    After hours of searching and playing around I gave up :-(

    I wasn't able so send mails from the admin panel (send mail to support, or send an invoice) --> from the billing tool extension.

    The postfix and mailing function works perfectly.

    I debugged long time and found no php related issues.

    May somebody can give me a hint as I'm at the end of my knowledge

    What are we talking about:

    CentOS 5.8
    PHP 5.3.3

    Sorry that I will keep it short ( I could paste endless logs but the interesting one is this one here)

    When I press the "support" button or when I call the "send invoice by mail" this is happening in the postfix mailq:

    DB7242C581E1* 35418 Thu Jun 21 21:51:47 [email protected]
    /var/log/ispconfig/[email protected]

    70F462C581CB* 1119 Thu Jun 21 21:28:04 [email protected]
    /var/log/ispconfig/[email protected]

    0D2472C581D3* 35529 Thu Jun 21 21:51:31 [email protected]
    /var/log/ispconfig/[email protected]

    D438F2C581C9* 35529 Thu Jun 21 21:27:48 [email protected]
    /var/log/ispconfig/[email protected]

    EF1F92C581C5* 1119 Thu Jun 21 21:51:25 [email protected]
    /var/log/ispconfig/[email protected]

    89E852C581CF* 35529 Thu Jun 21 21:30:04 [email protected]
    /var/log/ispconfig/[email protected]

    BC60B2C581D1* 1119 Thu Jun 21 21:28:22 [email protected]
    /var/log/ispconfig/[email protected]

    1C82D2C581CC* 1022 Thu Jun 21 21:28:27 [email protected]
    /var/log/ispconfig/[email protected]

    0D8A02C581B4* 1119 Thu Jun 21 21:27:41 [email protected]
    /var/log/ispconfig/[email protected]

    EE4AF2C581D2* 35529 Thu Jun 21 21:34:50 [email protected]
    /var/log/ispconfig/[email protected]

    This status is kept until the postfix is killing the queue

    this is the content of this fabulous mail in the queue:

    [[email protected] ~]# cat /var/spool/postfix/active/70F462C581CB
    encoding=8bitAlog_client_address=[]Alog_helo_name=localhostAlog_protocol_name=ESMTPAclient_name=unknownAeverse_client_name=unknownAclient_address=;/var/log/ispconfig/cron.logO0/var/log/ispconfig/[email protected]/var/log/ispconfig/[email protected]: from localhost (unknown [])N= by (Postfix) with ESMTP id 70F462C581CBN^ for </var/log/ispconfig/[email protected]>; Thu, 21 Jun 2012 19:28:04 +0000 (UTC)N2X-Virus-Scanned: amavisd-new at blusrv02.blufox.atN1Received: from ([])NJ by localhost ( []) (amavisd-new, port 10024)N with ESMTP id e5MhB3mNWh1oN8 for </var/log/ispconfig/[email protected]>;N' Thu, 21 Jun 2012 21:28:03 +0200 (CEST)N;Received: by (Postfix, from userid 48)N8 id 8B9132C581CF; Thu, 21 Jun 2012 21:28:03 +0200 (CEST)N4To: /var/log/ispconfig/[email protected])Subject: =?utf-8?B?SWhyZSBSZWNobnVuZw==?=N0X-PHP-Originating-Script: [email protected]ly-To: [email protected]tent-Type: text/plain;N charset="UTF-8"NContent-Transfer-Encoding: 8bitN>Message-Id: <[email protected]>N,Date: Tencoding=8bitE[[email protected] ~]# cST)NN"Im Anhang finden Sie Ihre RechnungNNMit freundlichen Gr├╝├čenNNIhr Ironhost Server TeamXA

    So the thing is actually generating the mail end putting it into the queue, but inside of it i can see that the postfix has no clue who the recipient is.

    From that point on I get totally lost :-(

    Would be great if somebody has a hint for me
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The billing moduele uses the php mail() function to send the emails. So if email sending does not work, then its a issue with the php mail() function and postfix.

    We provide support for the billing module by email. Please send us an email to the address you got the billing module from get help with your problem and include the information that you have about the problem.
  3. ironhost

    ironhost New Member

    Problem solved

    Hi Till,

    Thanks a lot for your answer.

    I found the problem after your hint with the php mail() function.

    It was pretty stupid as I could have found it much sooner :-(

    Just to may help somebody out who is facing the same problem:

    In the mailq was the following recipient:

    /var/log/ispconfig/[email protected] (not a real user but a path)

    --> but I found out that only this user has this value inside the mail path. All other users have correct mail addresses in the line. So i was just confused by recipient I guess.

    I also have to mention that there is nowhere the line inside the users settings. But this was the first user which has been created so it may came from somewhere in the nowhere.....

    But finally :)

    Thanks a lot Till ... ISPConfig rocks!!!

    To all other: buy the billing plugin as it is the best way to bill your costumers

Share This Page