Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to be an imap Client?

1 view
Skip to first unread message

Martin McCormick

unread,
Apr 20, 2011, 11:01:28 AM4/20/11
to
This FreeBSD system uses sendmail in normal smtp
configuration. I use procmail and nmh to manage incoming
messages and it all works great so I don't want to destroy all
that.

I do, however, need to use imap to send messages from
this system through our Microsoft Exchange gateway because some
systems use DNSBL and our entire network is on the blacklist so
one must send from the gateway which, I guess, must be
whitlisted.

Is there any FreeBSD-compatible package that will act as
a imap client so I can send messages, when needed, through the
Exchange gateway and still preserve present smtp functionality?

Many thanks. What a mess needing to send one message to one
person is turning in to.

Martin McCormick WB5AGZ Stillwater, OK
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Ruben de Groot

unread,
Apr 20, 2011, 11:24:20 AM4/20/11
to

There is the Mail::IMAPClient perl module (or Net::IMAP::Simple,
perl's about choice ;-) )

Ruben

On Wed, Apr 20, 2011 at 10:01:28AM -0500, Martin McCormick typed:

Jerry

unread,
Apr 20, 2011, 1:19:03 PM4/20/11
to
On Wed, 20 Apr 2011 10:01:28 -0500
Martin McCormick <mar...@dc.cis.okstate.edu> articulated:

> I do, however, need to use imap to send messages from
> this system through our Microsoft Exchange gateway because some
> systems use DNSBL and our entire network is on the blacklist so
> one must send from the gateway which, I guess, must be
> whitlisted.

Why are you blacklisted? It seems correcting that problem would be my
first priority.

--
Jerry ✌
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________
Never tell a lie unless it is absolutely convenient.

per...@pluto.rain.com

unread,
Apr 21, 2011, 2:22:35 AM4/21/11
to
Jerry <freebs...@seibercom.net> wrote:

> On Wed, 20 Apr 2011 10:01:28 -0500
> Martin McCormick <mar...@dc.cis.okstate.edu> articulated:

> > ... our entire network is on the blacklist ...


>
> Why are you blacklisted? It seems correcting that problem
> would be my first priority.

Being a university, okstate.edu has students, most of whom are
not in the CIS department or in any way under control of the CIS
department's sysadmin. Need I say more?

Jerry

unread,
Apr 21, 2011, 7:34:32 AM4/21/11
to
On Wed, 20 Apr 2011 23:22:35 -0700
per...@pluto.rain.com <per...@pluto.rain.com> articulated:

> Jerry <freebs...@seibercom.net> wrote:
>
> > On Wed, 20 Apr 2011 10:01:28 -0500
> > Martin McCormick <mar...@dc.cis.okstate.edu> articulated:
> > > ... our entire network is on the blacklist ...
> >
> > Why are you blacklisted? It seems correcting that problem
> > would be my first priority.
>
> Being a university, okstate.edu has students, most of whom are
> not in the CIS department or in any way under control of the CIS
> department's sysadmin. Need I say more?

Actually yes. Ignoring for a moment the reply you sent me directly,
conveniently bypassing the group forum, are you implying that these
students are using the University's web mail for possible illegal
actions and no one is policing that action?

--
Jerry ✌
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________

It's not the fall that kills you, it's the landing.

RW

unread,
Apr 21, 2011, 8:39:18 AM4/21/11
to
On Thu, 21 Apr 2011 07:34:32 -0400
Jerry <freebs...@seibercom.net> wrote:

> On Wed, 20 Apr 2011 23:22:35 -0700
> per...@pluto.rain.com <per...@pluto.rain.com> articulated:
>
> > Jerry <freebs...@seibercom.net> wrote:
> >
> > > On Wed, 20 Apr 2011 10:01:28 -0500
> > > Martin McCormick <mar...@dc.cis.okstate.edu> articulated:
> > > > ... our entire network is on the blacklist ...
> > >
> > > Why are you blacklisted? It seems correcting that problem
> > > would be my first priority.
> >
> > Being a university, okstate.edu has students, most of whom are
> > not in the CIS department or in any way under control of the CIS
> > department's sysadmin. Need I say more?
>
> Actually yes. Ignoring for a moment the reply you sent me directly,
> conveniently bypassing the group forum, are you implying that these
> students are using the University's web mail for possible illegal
> actions and no one is policing that action?

He's suggesting that mail sent direct-to-mx from arbitrary university IP
addresses is unlikely to be trustworthy. I presume that when the OP
said our "entire network is on the blacklist", he meant that the
university has put everything but it's own mailservers, into the Policy
Blocklist, and that he is trying to run an unofficial mailserver.

As regards the original question, unless I missed an RFC or Microsoft
implemented something proprietary, you can't send outgoing mail through
IMAP. The normal solution to the problem is to configure sendmail to
relay through a submission server.

Ian Smith

unread,
Apr 21, 2011, 9:21:25 AM4/21/11
to
On Thu, 21 Apr 2011 07:34:32 -0400 Jerry <freebs...@seibercom.net> wrote:
> On Wed, 20 Apr 2011 23:22:35 -0700
> per...@pluto.rain.com <per...@pluto.rain.com> articulated:
>
> > Jerry <freebs...@seibercom.net> wrote:
> >
> > > On Wed, 20 Apr 2011 10:01:28 -0500
> > > Martin McCormick <mar...@dc.cis.okstate.edu> articulated:
> > > > ... our entire network is on the blacklist ...
> > >
> > > Why are you blacklisted? It seems correcting that problem
> > > would be my first priority.
> >
> > Being a university, okstate.edu has students, most of whom are
> > not in the CIS department or in any way under control of the CIS
> > department's sysadmin. Need I say more?
>
> Actually yes. Ignoring for a moment the reply you sent me directly,
> conveniently bypassing the group forum,

perry's message, like this one, was likely posted to you, cc the list.
That's long been customary on freebsd lists, even this 'kindergarten'
one; noone 'conveniently bypassed' anything. If you don't like private
copies, sent as a courtesy, just delete them and move on.

The last thing we need is people here to troll on behalf of M$ stamping
their feet, demanding we change the way we've always used these lists.

> are you implying that these
> students are using the University's web mail for possible illegal
> actions and no one is policing that action?

Ah Jerry, good to see you end your admonition with a little humour!

cheers, ian

"He only does it to annoy, because he knows it teases" -- Lewis Carroll

Jerry

unread,
Apr 21, 2011, 9:51:43 AM4/21/11
to
On Thu, 21 Apr 2011 23:21:25 +1000 (EST)
Ian Smith <smi...@nimnet.asn.au> articulated:

> On Thu, 21 Apr 2011 07:34:32 -0400 Jerry <freebs...@seibercom.net>
> wrote:
> > On Wed, 20 Apr 2011 23:22:35 -0700
> > per...@pluto.rain.com <per...@pluto.rain.com> articulated:
> >
> > > Jerry <freebs...@seibercom.net> wrote:
> > >
> > > > On Wed, 20 Apr 2011 10:01:28 -0500
> > > > Martin McCormick <mar...@dc.cis.okstate.edu> articulated:
> > > > > ... our entire network is on the blacklist ...
> > > >
> > > > Why are you blacklisted? It seems correcting that problem
> > > > would be my first priority.
> > >
> > > Being a university, okstate.edu has students, most of whom are
> > > not in the CIS department or in any way under control of the CIS
> > > department's sysadmin. Need I say more?
> >
> > Actually yes. Ignoring for a moment the reply you sent me directly,
> > conveniently bypassing the group forum,
>
> perry's message, like this one, was likely posted to you, cc the
> list. That's long been customary on freebsd lists, even this
> 'kindergarten' one; noone 'conveniently bypassed' anything. If you
> don't like private copies, sent as a courtesy, just delete them and
> move on.

Wrong, it was sent directly, not CC'd. As per my stated policy, it was
answered/referred to on the list forum. I am seriously considering
changing that policy to also include reporting them as Spam.

> The last thing we need is people here to troll on behalf of M$
> stamping their feet, demanding we change the way we've always used
> these lists.

You are referring to the way you have always done things. See
previously posted comments on CC'ing and you will readily find that it
is not a universally accepted method. I will admit that it is mostly
the preferred method of narcissists.

> > are you implying that these
> > students are using the University's web mail for possible illegal
> > actions and no one is policing that action?
>
> Ah Jerry, good to see you end your admonition with a little humour!
>
> cheers, ian
>
> "He only does it to annoy, because he knows it teases" -- Lewis
> Carroll

No humor intended. I have read another post that might also describe
why the network is being blacklisted. I firmly believe that a diligent
SA (note the word diligent) could attempt to correct this problem. From
past experience, those who are blacklisted are so listed due to their
own fault and for the protection of others. Attempting to bypass such a
listing is a favorite of Spammers and their ilk; as well as those who
are attempting a thief of service as per the conditions stated by the
IPs owner.

--
Jerry ✌
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies, ignored and/or
rerported as Spam. Please do not ignore the Reply-To header.
__________________________________________________________________

_______________________________________________

Chris Rees

unread,
Apr 21, 2011, 10:07:23 AM4/21/11
to
On 21 April 2011 14:51, Jerry <freebs...@seibercom.net> wrote:

> Disclaimer: off-list followups get on-list replies, ignored and/or
> rerported as Spam. Please do not ignore the Reply-To header.

s#\(re\)r\(ported\)#\1\2#

Chris

Martin McCormick

unread,
Apr 21, 2011, 10:51:43 AM4/21/11
to
per...@pluto.rain.com writes:
> Being a university, okstate.edu has students, most of whom are
> not in the CIS department or in any way under control of the CIS
> department's sysadmin. Need I say more?

Spot on. About 25,000 students and some of them respond to
phishing attempts and make other poor management decisions, many
of which are done with the best of intentions.

David Brodbeck

unread,
Apr 21, 2011, 7:47:36 PM4/21/11
to
On Thu, Apr 21, 2011 at 6:51 AM, Jerry <freebs...@seibercom.net> wrote:
> No humor intended. I have read another post that might also describe
> why the network is being blacklisted. I firmly believe that a diligent
> SA (note the word diligent) could attempt to correct this problem.

One of the things about working in a university environment is
top-level network policies are often set by a separate campus-wide
entity; sysadmins working on the department level often have no
control over this. So the blacklisting decision may not be something
he has the power to change.

Also keep in mind that in a lot of university environments network
access is uncontrolled. Where I work students can plug into any
network jack and have full access. They do make an effort to react to
and shut down compromised machines, but I can see why blacklisting IPs
that aren't intended to have mail servers on them might seem like a
reasonable proactive measure. There are blacklists that attempt to
contain all home cable and DSL IP blocks for exactly this reason.

per...@pluto.rain.com

unread,
Apr 22, 2011, 12:27:13 AM4/22/11
to
Jerry <freebs...@seibercom.net> wrote:

> > > Actually yes. Ignoring for a moment the reply you sent me
> > > directly, conveniently bypassing the group forum,
> >
> > perry's message, like this one, was likely posted to you, cc the
> > list. That's long been customary on freebsd lists, even this
> > 'kindergarten' one; noone 'conveniently bypassed' anything. If you
> > don't like private copies, sent as a courtesy, just delete them and
> > move on.
>
> Wrong, it was sent directly, not CC'd. As per my stated policy, it was
> answered/referred to on the list forum. I am seriously considering
> changing that policy to also include reporting them as Spam.

Before making any such accusations, you had better make D@#% sure of
your facts, lest you find yourself on the wrong end of a libel suit.

My email client respects Reply-To: and I checked my logs just to be
sure. That reply, as this one, was sent _only_ to the list.

> No humor intended. I have read another post that might also describe
> why the network is being blacklisted. I firmly believe that a diligent
> SA (note the word diligent) could attempt to correct this problem.

Others have sufficiently addressed this portion of your tirade, I think.

Ian Smith

unread,
Apr 23, 2011, 2:36:24 AM4/23/11
to
In freebsd-questions Digest, Vol 359, Issue 7, Message: 1
On Thu, 21 Apr 2011 21:27:13 -0700 per...@pluto.rain.com wrote:
> To: freebsd-...@freebsd.org

>
> Jerry <freebs...@seibercom.net> wrote:
>
> > > > Actually yes. Ignoring for a moment the reply you sent me
> > > > directly, conveniently bypassing the group forum,
> > >
> > > perry's message, like this one, was likely posted to you, cc the
> > > list. That's long been customary on freebsd lists, even this
> > > 'kindergarten' one; noone 'conveniently bypassed' anything. If you
> > > don't like private copies, sent as a courtesy, just delete them and
> > > move on.
> >
> > Wrong, it was sent directly, not CC'd. As per my stated policy, it was
> > answered/referred to on the list forum. I am seriously considering
> > changing that policy to also include reporting them as Spam.
>
> Before making any such accusations, you had better make D@#% sure of
> your facts, lest you find yourself on the wrong end of a libel suit.
>
> My email client respects Reply-To: and I checked my logs just to be
> sure. That reply, as this one, was sent _only_ to the list.

Apologies for assuming you must have cc'd Jerry. I should have checked
your original post in freebsd-questions Digest, Vol 359, Issue 4, which
shows any ccs, but not headers such as Reply-To: per message ..

Message: 23
Date: Wed, 20 Apr 2011 23:22:35 -0700
From: per...@pluto.rain.com
Subject: Re: How to be an imap Client?
To: freebsd-...@freebsd.org
Message-ID: <4dafcd2c.tj0+Rgq2U5+TZv2y%per...@pluto.rain.com>
Content-Type: text/plain; charset=us-ascii

Jerry <freebs...@seibercom.net> wrote:

> On Wed, 20 Apr 2011 10:01:28 -0500
> Martin McCormick <mar...@dc.cis.okstate.edu> articulated:
> > ... our entire network is on the blacklist ...
>
> Why are you blacklisted? It seems correcting that problem
> would be my first priority.

Being a university, okstate.edu has students, most of whom are


not in the CIS department or in any way under control of the CIS
department's sysadmin. Need I say more?

------------------------------

Having admin'd small clubs of at most 25 members mostly using regularly
virus-, trojan- and malware-infested Windows boxes, I can hardly imagine
having to deal with perhaps half of 25,000 similarly vulnerable laptops,
at least 1% of which will be trying hard to spam or portscan the planet
at any given time - nearly all, as Martin points out, without intent or
knowledge of their poor blighted owners .. and they're a smarter crew!

cheers, Ian

per...@pluto.rain.com

unread,
Apr 23, 2011, 4:48:03 PM4/23/11
to
Ian Smith <smi...@nimnet.asn.au> wrote:

> Apologies for assuming you must have cc'd Jerry. I should have
> checked your original post in freebsd-questions Digest, Vol 359,
> Issue 4, which shows any ccs, but not headers such as Reply-To:
> per message ..

That wasn't aimed at you, Ian, but at Jerry's threat to report
something as spam without checking his facts. Absent the threat
I would simply have told him that he was wrong.

Your assumption was entirely reasonable (and couldn't have been
disproved via the digest or archives anyway, since those would
not show the Bcc: recipients had there been any).

0 new messages