cronjob mail out not signed with dkim or correct dns host

soulshepard

Verified User
Joined
Feb 7, 2008
Messages
134
Hello,

I have a strange problem: When from php you send a mail out all is ok, correct SPF with dkim signing etc. but when you send it with the crontab (the same user and webfolders and php functions)
then it is NOT siging with dkim and sending out with the default server name of the host so you end up with an incorrect spf record.

running da 4.6 and cb2.0

anybody had this?

Thanks in advance

Jan Dijk
 
Last edited:
for me, when sending from the cron it uses a wrong eveloppe from

from http: evelope-from <[email protected]>
from cron: evelope-from <[email protected]>

the directadminservername.com does not have mx records or is listed in the spf records and or is signed with the domain name
the customersdomain.com is working and has a valid mx,spf and dkim
 
a workarround would be to call the cron from curl on the http adress.

/usr/local/bin/curl --silent http://www.site.com/cron/thecronfile.php <-- this works then
but
/usr/local/bin/php /home/site/domains/site.com/public_html/cron/thecronfile.php <-- this works not and has invalid sfp and or enveloppe as mentioned above

but i would like a way to have it running correctly with the local cli cron.. does anyone have a resolution for it? or encounterd it?
in other words this means that sending mail from a cron would allways require curl to call it.
 
Last edited:
Back
Top