FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » FORMS, validating mail was sent
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: FORMS, validating mail was sent [message #181868 is a reply to message #181862] Thu, 20 June 2013 19:44 Go to previous messageGo to previous message
gordonb.vb4vo is currently offline  gordonb.vb4vo
Messages: 1
Registered: June 2013
Karma:
Junior Member
> Not easy. I usually include myself in the mailing list.
>
> BUT even so if there are bad mail addresses, then you need to set
> yourself as the bounce target as well, to see those.
> In general in a *nix platform the messages will be recieved by the SMTP
> forwarding agent, and then get queued and a queue run will take place
> immediately.
>
> to check the mail queue there is a system command mailq which should
> return empty.

However, checking the mail queue doesn't tell you much. If a test
tells you that you might be ugly if it's positive and you might be
ugly if it's negative, why run the test at all? The mail queue may
be empty because:
+ Your mail was dropped on the floor for having an invalid
From: address. Valid From: addresses likely include ONLY
those with the host name of the server you are sending
from and a known valid user on that system. Typically
only a few users like root can send mail with 'fake'
(off-system) From: addresses. Hint: Do NOT put a
user-supplied email address in the From: header.

+ Your mail was already sent on.

+ Your mail has already bounced.

+ Your mail was already dropped for policy reasons like
sending over a number of addresses in a given hour.

The mail queue may *not* be empty because:
+ If the system load was high, the "immediate queue run" may
not be so immediate.

+ Someone's been sending a lot of mail. It is not at all
difficult to back up a mail server sending one email per second
(we'll assume you are sending individual copies because
they are personalized) and starting a queue run each time.

+ Someone (perhaps another user of your site) just sent
mail a few milliseconds ago.

+ The intended recipient has a slow DNS server. If you
send emails to 100 recipients at a time, it is likely
that at least a couple of them have slow DNS servers or
overloaded mail servers. The mail will stay in the queue
until the message has been delivered to all recipients,
and that can take days, even if 98 of them were delivered
in the first minute.

> But you cant execute that without root privileges. Which means having
> that level of access to the machine and writing an su 'ed wrapper in C
> and calling that instead.

Sometimes you can get a queue count without root privileges. The
program that comes with the MTA for this is likely already setuid-root,
and you may be able to configure allowing ordinary users to get a
queue count.

> If apache is running php as 'www-data' or whatever.

> In short there are things you can do, but none are easy and all are
> outside the scope of 'just' php.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: strange one
Next Topic: how to change old ereg?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 06:57:32 GMT 2024

Total time taken to generate the page: 0.04169 seconds