Forum

[SOLVED] Stuck with...
 
Notifications
Retirer tout

[SOLVED] Stuck with sendmail and projeqtor

26 Posts
3 Utilisateurs
0 Reactions
17.7 {numéro}K Vu
henning telemann
(@4ce)
Posts: 56
Trusted Member
Début du sujet
 
[#5427]

hi there,

i tried a couple of month configure my projeqtor with our exchange server and finally i'm stuck. after read tons of articles and the whole forum 'bout sendmail i do not have any clue.

the exchange informations seems to be correct, so it states "email sent" in projeqtor. in the log (mail.log) the mail remains in status "queued".

in projeqtor i use phpmail. the recommende phpmailer seems to be errornous too ( if i leave the sendmail path empty it says error, if i put in any value or a sinlge character, it says "mail sent"). i tried different protocols and with or without sendmail path. i tried putting in the ip address instead of servername but it gets not better.

host and dns data are filled correct. telnet works. loggin only states that the mail is queued and it will not left the status.

i configured the php.ini with an static sendmail path and with "-r" parameter but it seems that nothing changed.

did anyone have a clue? i guess it is a short configure i did not recognize or any easy parameter.

projeqtor 7.2.2 (problem occurs since v6)
server ubuntu 16.04 lts (patched the days with recent updates)


 
Posté : 17/09/2018 11:37 am
(@babynus)
Posts: 14952
Membre Admin
 

I the log (mail.log) displays a "queued" message, it means projeqtor has correctly send message, and exchange correctly received it.
Now, it is an Exchenge issue : possibly the account you use is locked in Exchange, or not known ...


 
Posté : 17/09/2018 5:13 pm
henning telemann
(@4ce)
Posts: 56
Trusted Member
Début du sujet
 

at first thank you for your support and patience.

you had a point but i guess there is another error and i do not know what exactly the problem is.

at least i tried to put in my gmail account settings. and it remains the same. in every case the testmail states "email sent" the mail.log file put it on "queued" and nothing happened.

i tried using my gmail account as sender (smtp settings) to send a test to my company account. -> queued

i tried the gmail account as sender and as recipient (so our sandbox can not stop the mail) and also queued.

maybe sendmail has a general problem?

the settings in the back-end of projeqtor are instant? i restart sendmail and cron via console, i dont know if every change is loaded directly.


 
Posté : 18/09/2018 11:19 am
(@babynus)
Posts: 14952
Membre Admin
 

maybe sendmail has a general problem?

ProjeQtOr does not systematically use sendMail
We use phpMailer library, which will use default mailing system.
It can be sendMail, postfix or else.
I think you have issue with your mailing system.
Did you try and send emails through other means than projeqtor ?

the settings in the back-end of projeqtor are instant? i

Yes.


 
Posté : 19/09/2018 2:06 am
(@babynus)
Posts: 14952
Membre Admin
 

Additionnaly, try an external smtp server (gmail or else)


 
Posté : 19/09/2018 2:19 am
henning telemann
(@4ce)
Posts: 56
Trusted Member
Début du sujet
 

Hi - as stated above. i tried gmail as sender (smtp) and as receipient and both as the same time. so in fact i think my webserver for projeqtor has an issue. but i dont know where.

is there any config-file or ini which can cross the normal behaviour. should i reinstall the php mailing apps? or should i install postfix and configure to that?

the php mailing library needs a sendmail path? without it runs on a error. if filled (even with nonsense) it says email sent.

as the mailserver seems to be not the issue and projeqtor states he sends out the messages,there can only be some issue with interfaces or config files, am i right?

thank you for hustling with that


 
Posté : 19/09/2018 10:58 am
(@babynus)
Posts: 14952
Membre Admin
 

Hi - as stated above. i tried gmail as sender (smtp) and as receipient and both as the same time. so in fact i think my webserver for projeqtor has an issue. but i dont know where.

Take care when using

smtp host = smtp.gmail.com

you must specify

smtp port = 587

and you absolutely need to use an valid gmail acocunt for user / password.

is there any config-file or ini which can cross the normal behaviour. should i reinstall the php mailing apps? or should i install postfix and configure to that?

Default uses phpMailer.
You can cange the "mailer Type" in global parameter to use PHPMail function of sockets connection

the php mailing library needs a sendmail path? without it runs on a error. if filled (even with nonsense) it says email sent.

It is required only if your select PHPMail as mailer and sendmail is not installed at deault location.

as the mailserver seems to be not the issue and projeqtor states he sends out the messages,there can only be some issue with interfaces or config files, am i right?

I think it is, but I'm not a specialist in email sending


 
Posté : 20/09/2018 8:19 pm
henning telemann
(@4ce)
Posts: 56
Trusted Member
Début du sujet
 

ok we had several problems which are now solved.

sending mails will work from now on. imap is configured (correctly) - no error messages will be generated.

so from this point i have a question.

is there a log file which logs the email answers? imap seems to work, but no notes will be attached.

i searched the forum but did not receive an answer where to look for logs or to test the receiving of emails.

thank you for your help


 
Posté : 25/01/2019 2:21 pm
(@babynus)
Posts: 14952
Membre Admin
 

is there a log file which logs the email answers? imap seems to work, but no notes will be attached.

No, you'll have to code it yourself.

Find code deling with reading imap and add

debugLog("your messge");

or

traceLog("your messge");

 
Posté : 25/01/2019 4:19 pm
henning telemann
(@4ce)
Posts: 56
Trusted Member
Début du sujet
 

hi there its me again.

thank you for your help already given.

actually i point out my problem, but again i am stuck.

the connection to imap will work, and after a small test php it works fine and response the mails listet in the inbox. BUT the imap_open command from projeqtor will only response:

Mailbox is empty

I tried setting the conditions of searched mails from "unseen" to "all" but noc changes. also i tried every kind of inbox foldername but still the same.

for me it looks like he did not find the inbox Folder. and if imap open has a folder in the string which does not exist, he will always response "mailbox is empty". in my test.php "Inbox" is working fine, so i guess that projeqtor transforms the string not in the way he receives a working feedback.

also i tried sending a plaintext response, so that i am shure it is no converting problem. i am sorry that i can not provide any further logfile, because the only log i get is "Mailbox is empty".

do you have any clue which can send me in the right direction?


 
Posté : 12/03/2019 12:48 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
 

Hello,

got the same problem with IMAP; No mail read from iINBOX...


 
Posté : 12/03/2019 5:34 pm
(@babynus)
Posts: 14952
Membre Admin
 

First, take care of case when writing inbox name.
In most cases, Inbox must be written in uppercase (INBOX)

Be sure that the "reply to" parameter is corresponding to inbox account.

At least, when user replies to email, he must preserve the original message.
(and I'm not sure it will work is message uses a specific template)


 
Posté : 13/03/2019 5:52 pm
henning telemann
(@4ce)
Posts: 56
Trusted Member
Début du sujet
 

hi there - thank you for your response.

the reply to address is exactly like the sender email. and inbox was written in any given ways, but still "Mailbox is empty". i wrote a short test.php which access the imap via the connection string and lists the inbox. and it works fine. in fact that "mailbox is empty" appears if i define any foldername (xxx or whatever) seems to me that the cron.php builds an errornous connection string. connection works, the connection string works manually written in a test.php. no error message appears.

the original mail was left, even with blank spaces and in several tests in rich text/html/plain text. nothing will work.

it driving me nuts


 
Posté : 13/03/2019 6:01 pm
(@babynus)
Posts: 14952
Membre Admin
 

Could you please explain this part :

in fact that "mailbox is empty" appears if i define any foldername (xxx or whatever)


 
Posté : 13/03/2019 6:10 pm
henning telemann
(@4ce)
Posts: 56
Trusted Member
Début du sujet
 

in the connection string i can typ any name as folder and everytime "mailbox is empty" appears. for example

- }Inbox -> folder exists but "mailbox is empty" appears
- }ABCDEF -> folder did not exist but the message "maibox is empty" appears

so for me it seems that everytime the foldername is not correct and the folder did not exist the message "mailbox is empty" is in the log.

if i left the connection string without folder name - an error appears that the foldername is missing.

in my test php file, "Inbox" as foldername work fine. so i guessed that the cron eventually deforms the parameters out of the global parameters into an errornous string.

can you follow my explanations?


 
Posté : 13/03/2019 6:23 pm
Page 1 / 2
Share:
Retour en haut