Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 21st June 2012, 23:23
ironhost ironhost is offline
Junior Member
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 2 Times in 1 Post
Unhappy Sending mail from billing tool fails

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

70F462C581CB* 1119 Thu Jun 21 21:28:04 apache@server01.ironhost.at

0D2472C581D3* 35529 Thu Jun 21 21:51:31 apache@server01.ironhost.at

D438F2C581C9* 35529 Thu Jun 21 21:27:48 apache@server01.ironhost.at

EF1F92C581C5* 1119 Thu Jun 21 21:51:25 apache@server01.ironhost.at

89E852C581CF* 35529 Thu Jun 21 21:30:04 apache@server01.ironhost.at

BC60B2C581D1* 1119 Thu Jun 21 21:28:22 apache@server01.ironhost.at

1C82D2C581CC* 1022 Thu Jun 21 21:28:27 apache@server01.ironhost.at

0D8A02C581B4* 1119 Thu Jun 21 21:27:41 apache@server01.ironhost.at

EE4AF2C581D2* 35529 Thu Jun 21 21:34:50 apache@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= ssage_origin=unknown[]Alog_helo_name=localhostAlog_protocol_name=ESMTPAc lient_name=unknownAeverse_client_name=unknownAclie nt_address= dress_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 [])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 ([])NJ by localhost (server01.ironhost.at []) (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
Reply With Quote
Sponsored Links
Old 22nd June 2012, 09:32
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

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.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 24th June 2012, 00:44
ironhost ironhost is offline
Junior Member
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 2 Times in 1 Post
Default 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
Reply With Quote
The Following 2 Users Say Thank You to ironhost For This Useful Post:
falko (24th June 2012), till (24th June 2012)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail recipient linux_red Installation/Configuration 6 9th March 2012 15:24
mail queue - mail not sending not receiving Amorphous Installation/Configuration 2 25th January 2012 00:55
Sendig mail Error fisherofer Installation/Configuration 12 30th November 2011 08:56
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 11:56
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 09:27

All times are GMT +2. The time now is 01:17.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.