From: Chris Knadle <Chris.Knadle@coredump.us>
To: mlmmj@mlmmj.org
Subject: Re: [mlmmj] Setup access rule to only allow single sender IP
Date: Wed, 08 Apr 2015 06:16:19 +0000 [thread overview]
Message-ID: <5524C7B3.6090004@coredump.us> (raw)
In-Reply-To: <20150407222757.3cea20fa@chg-trisquel>
On 04/08/2015 01:48 AM, Christian Gleerup wrote:
> Hi Chris
>
> The computer that the mail is written from can be different, but
> they are send from a webmail client, as far as i can see, it does not
> embed the ip in the email header.
That's unusual. Usually a webmail system would talk SMTP to the local
MTA, thereby leaving a "Received:" mail header that would contain the
connection IP address (even if it's localhost [127.0.0.1]). Are you
saying that even this isn't added to the header?
> So i was wondering if it could be seen in some other way?
Well if you're sending mail from a webmail system then the /web server/
would be the only place that would know the connection IP address. From
there if the webmail system contacts the MTA, the MTA will only get the
IP of the webmail system, not the originating IP connecting to webmail.
It might be possible to write an ACL /in the MTA rules/ to do what you
want here, but it would require the ACL to be able to parse the webmail
logs, i.e. the webserver logs for webmail connections. There are
versions of Exim [such as exim4-daemon-heavy on Debian] which contain
embedded Perl where you could write such a rule and use Perl regexes
and so forth to match on an IP or a particular authenticated username...
but all of this is dependent on what MTA you're using.
-- Chris
--
Chris Knadle
Chris.Knadle@coredump.us
next prev parent reply other threads:[~2015-04-08 6:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-07 20:27 [mlmmj] Setup access rule to only allow single sender IP Christian Gleerup
2015-04-08 1:34 ` Chris Knadle
2015-04-08 5:48 ` Christian Gleerup
2015-04-08 6:16 ` Chris Knadle [this message]
2015-04-08 21:06 ` Chris Knadle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5524C7B3.6090004@coredump.us \
--to=chris.knadle@coredump.us \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox