You can't really. Nowadays most mail servers are locked down to not allow routing from external hosts. This is to help stop spammers that use unprotected email servers as gateways hiding their real location. Even if you were to have each user's admin set their mail server to allow you to use it as a relay, you still have the problem of generating the email on your system and smarthosting to the other systems, so no "load" is averted. The only option you would have would be to queue up the mail data and send it off to their site and have them then queue it -- which seems like a fix worse then the original problem. I would suggest you take a look at setting up queues in sendmail and optimizing your server to handle large queues. Also take a close look at what you are trying to do and make sure you do not have ways that this system can be hijacked by spammers to send anonymous email in batch.

-Waswas

Also note that in no place in this responce does perl get brought up. Your question would be better targeted on a sendmail mailing list.

In reply to Re: How do I send an email using the user's sendmail program than my sendmail? by waswas-fng
in thread How do I send an email using the user's sendmail program than my sendmail? by PerlBeginner

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.