SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001348SiT!inbound emailpublic2010-06-18 14:002010-07-21 21:29
Assigned Topaulh 
PlatformLinuxOSLinuxOS Version2.6+later
Product Version3.60 LTS 
Target Version3.62 LTSFixed in Version3.62 LTS 
Summary0001348: MTA problem solved

I tried configuring the inbound mail, and I want to report a couple of issues I had.

First of all, I think the documentation should mention that you need to add something like #!/usr/bin/php to scripts such as output.php or inboundmail.php if you want them to work (for instance from the scheduler). To me, that was evident, but it might not be evident to others.

I first tried the "simple" solution: POP/IMAP, but I didn't manage to get it working. I don't think it's a bug, it's probably a configuration error on my side. I manually triggered auto.php. First I had the error because php_imap was missing, but after installing the module, no error was thrown, but no mail was fetched from my support INBOX either.

I didn't pursue this because I was more interested in the "push" solution than in the "pull" solution. At first, I received errors saying:

Fatal error: Call to undefined function return_bytes() in /var/www/public_html/lib/ on line 131

I looked in the code, and I found that the method return_bytes() is defined in
This file is included before in inboundemail.php, but it should be included in an earlier stage.
Steps To ReproduceFollowing the instructions for MTA and you'll get the Fatal Error: "Call to undefined function return_bytes()."
Additional InformationYou can solve this problem like this:

require_once ('core.php');
# add this line here:
require_once (APPLICATION_LIBPATH . '');
# add the above line.
require_once (APPLICATION_LIBPATH . '');
require (APPLICATION_LIBPATH . 'fetchSitMail.class.php');

if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))
    include (APPLICATION_LIBPATH . '');
# change the line below so that isn't included twice
    require_once (APPLICATION_LIBPATH . '');
# change the line above (or remove it)
    require_once (APPLICATION_LIBPATH . '');
TagsNo tags attached.
Attached Files

- Relationships
duplicate of 0001014closedpaulh inboundemail.php does not work 
related to 0000671closedpaulh inbound email does not work (Using MTA mode) 

-  Notes
User avatar (0003282)
paulh (administrator)
2010-07-02 19:28

going to try and get this fixed for 3.62
User avatar (0003283)
paulh (administrator)
2010-07-03 12:37

r6533 and b6a0130 fix the includes problem, [^] updated to include either adding #!/usr/bin/php to the beginning of the file or to call the script with "php inboundemail.php"
User avatar (0003327)
ivan (administrator)
2010-07-18 15:05

Released in v3.62

- Issue History
Date Modified Username Field Change
2010-06-18 14:00 blowagie New Issue
2010-07-02 19:25 paulh Relationship added duplicate of 0001014
2010-07-02 19:26 paulh Relationship added related to 0000671
2010-07-02 19:28 paulh Note Added: 0003282
2010-07-02 19:28 paulh Assigned To => paulh
2010-07-02 19:28 paulh Status new => assigned
2010-07-02 19:28 paulh Target Version => 3.62 LTS
2010-07-03 12:37 paulh Note Added: 0003283
2010-07-03 12:37 paulh Resolution open => fixed
2010-07-03 12:37 paulh Fixed in Version => Current SVN
2010-07-03 12:38 paulh Status assigned => resolved
2010-07-18 15:05 ivan Note Added: 0003327
2010-07-18 15:05 ivan Status resolved => closed
2010-07-21 21:29 ivan Fixed in Version Current SVN => 3.62 LTS

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker