Koozali.org: home of the SME Server

qmail using anonymous@myplace.com to send mail

Offline Confucius

  • *****
  • 235
  • +0/-0
qmail using anonymous@myplace.com to send mail
« Reply #15 on: June 25, 2007, 01:20:48 PM »
OK... might be a vital change

Code: [Select]
$mailheaders = "From: info@myspace.nl <info@myspace.nl> \n";
$mailheaders .= "Reply-To: me@myspace.nl\n";
$mailheaders .= "Return-Path: me@myspace.nl\n\n";


instead of

Code: [Select]
$mailheaders = "From: info@myspace.nl <info@myspace.nl> \n";
$mailheaders .= "Reply-To: me@myspace.nl\n\n";

Offline swissis

  • ***
  • 61
  • +0/-0
qmail using anonymous@myplace.com to send mail
« Reply #16 on: June 25, 2007, 01:31:27 PM »
Yes i created one at Pseudonyms

info@myplace.nl     postmaster_sow     Modify     Remove
mailer-daemon           Administrator              Modify    

Don't you think i should change the  user owning the cronjob.

Now this is root i think. I open a console window with PUTTY and log in with root.
When i give the command

crontab -l i see this line

0 18 * * * /bin/reminder.sh

In reminder.sh is this

Code: [Select]

reminder.sh   [B---]  6 L:[  1+ 6   7/  8] *(194 / 195b)= .  10 0x0A
#!/bin/bash
# SME 7.0 script 1.0
# Door Marcello
# Script om een php script uit te voeren
lynx -dump http://server9/sow/mailtedoen.php
lynx -dump http://server9/sow/mailmeeting.php
exit 0
...

Offline Confucius

  • *****
  • 235
  • +0/-0
qmail using anonymous@myplace.com to send mail
« Reply #17 on: June 25, 2007, 01:34:09 PM »
why not use the command

Code: [Select]
php /bin/yourscript.php

?

Offline swissis

  • ***
  • 61
  • +0/-0
qmail using anonymous@myplace.com to send mail
« Reply #18 on: June 25, 2007, 01:42:37 PM »
Yes that works also. Now it says in the qmail log

2007-06-25 13:39:13.230049500 new msg 1690235
2007-06-25 13:39:13.230054500 info msg 1690235: bytes 698 from <root@xxxxxx.com> qp 16006 uid 0
2007-06-25 13:39:13.238997500 starting delivery 99419: msg 1690235 to remote m.xxxx@xxxxx.nl
2007-06-25 13:39:13.239003500 status: local 0/10 remote 1/20
...

Offline Confucius

  • *****
  • 235
  • +0/-0
qmail using anonymous@myplace.com to send mail
« Reply #19 on: June 25, 2007, 01:44:32 PM »
Great. Another problem solved.

It doesn't surprise me 1 bit. ISP's check more and more for the validity of mail and with good reason...

Fijne dag nog.

Offline swissis

  • ***
  • 61
  • +0/-0
qmail using anonymous@myplace.com to send mail
« Reply #20 on: June 25, 2007, 01:47:48 PM »
One last thing,

What would i have to do to have the mails send by another user with a different pseudonym or email adres?

Groeten met handen en voeten terug. (ik heb nog ff zitten denken om de lengte- en breedtegraden in google earth op te zoeken)
...

Offline Confucius

  • *****
  • 235
  • +0/-0
qmail using anonymous@myplace.com to send mail
« Reply #21 on: June 25, 2007, 01:52:32 PM »
When I use the command line "php /bin/scriptname.php" and replace all names in front of the @ I can send out as anybody I want. That includes non-exsiting names like no-reply@myspace.nl

It goes ok for me. But have to admit, I'm not using several accounts to see the arrival, only using 1 address.