Hi,

I have created a mail server using postfix and created the catchall address. - so far so good.

Am looking for something that reads the below..

1) From Address(s) - Needed to verify the sender to continue in the script next steps..

2) Original To Address(s) - Example: 11111111@domain.com;22222222@domain.com

Checks to be done on point 2, need to confirm that the To address contains 8 numbers @domain.com

If the above is matched..

I need remove the @domain.com and the number into a temp $mobilvariable and the subject into another $textvariable.

Then I can GET an HTTP request

something like:

my $url="http://x.x.x.x:14013/cgi-bin/sendsms?username=xxx&password=xxx&to=$mobilvariable&from=mail2sms&text=$textvariable";

my $request = new HTTP::Request('GET', $url);


In reply to mail2sms for Kannel by Pizu

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.