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 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    70F462C581CB* 1119 Thu Jun 21 21:28:04 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    0D2472C581D3* 35529 Thu Jun 21 21:51:31 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    D438F2C581C9* 35529 Thu Jun 21 21:27:48 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    EF1F92C581C5* 1119 Thu Jun 21 21:51:25 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    89E852C581CF* 35529 Thu Jun 21 21:30:04 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    BC60B2C581D1* 1119 Thu Jun 21 21:28:22 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    1C82D2C581CC* 1022 Thu Jun 21 21:28:27 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    0D8A02C581B4* 1119 Thu Jun 21 21:27:41 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at

    EE4AF2C581D2* 35529 Thu Jun 21 21:34:50 apache@server01.ironhost.at
    /var/log/ispconfig/cron.log@server01.ironhost.at


    This status is kept until the postfix is killing the queue


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

    [root@server01 ~]# cat /var/spool/postfix/active/70F462C581CB
    encoding=8bitAlog_client_address=127.0.0.1A%log_message_origin=unknown[127.0.0.1]Alog_helo_name=localhostAlog_protocol_name=ESMTPAclient_name=unknownAeverse_client_name=unknownAclient_address=127.0.0.1Ahelo_name=localhostAclient_address_type=2A0dsn_orig_rcpt=rfc822;/var/log/ispconfig/cron.logO0/var/log/ispconfig/cron.log@server01.ironhost.atR0/var/log/ispconfig/cron.log@server01.ironhost.atMN.Received: from localhost (unknown [127.0.0.1])N= by server01.ironhost.at (Postfix) with ESMTP id 70F462C581CBN^ for </var/log/ispconfig/cron.log@server01.ironhost.at>; Thu, 21 Jun 2012 19:28:04 +0000 (UTC)N2X-Virus-Scanned: amavisd-new at blusrv02.blufox.atN1Received: from server01.ironhost.at ([127.0.0.1])NJ by localhost (server01.ironhost.at [127.0.0.1]) (amavisd-new, port 10024)N with ESMTP id e5MhB3mNWh1oN8 for </var/log/ispconfig/cron.log@server01.ironhost.at>;N' Thu, 21 Jun 2012 21:28:03 +0200 (CEST)N;Received: by server01.ironhost.at (Postfix, from userid 48)N8 id 8B9132C581CF; Thu, 21 Jun 2012 21:28:03 +0200 (CEST)N4To: /var/log/ispconfig/cron.log@server01.ironhost.atN)Subject: =?utf-8?B?SWhyZSBSZWNobnVuZw==?=N0X-PHP-Originating-Script: 5003:functions.inc.phpNFrom: office@ironhost.atNReply-To: office@ironhost.atNContent-Type: text/plain;N charset="UTF-8"NContent-Transfer-Encoding: 8bitN>Message-Id: <20120621192803.8B9132C581CF@server01.ironhost.at>N,Date: Tencoding=8bitE[root@server01 ~]# 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

    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/cron.log@servername.com (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