RE: Fastforward AND smarthost-style operation at once

2000-08-23 Thread Brett Randall

> the message just loops because qmail-send thinks that kendle.com is local.
> I know it's sort of nitpicky, but I need messages to be processed through
> fastforward and be relayed to the next server with the recipient
> address of
> [EMAIL PROTECTED] if no match is found.
>
> Any ideas?

OK I have spent all day pondering over ideas because I know I will be asked
one day 'why does it say e-mails are getting sent to [EMAIL PROTECTED]
instead of [EMAIL PROTECTED]?' so I better fix it now...

My idea (which I am going to try implementing this weekend not during week
when ppl are working :> ) so I don't know if it will work but it is an idea
anyway...

~alias/.qmail-default:
| fastforward -pd /etc/aliases.cdb
./Other/

Then a cron job every 5 minutes that runs maildir2smtp (part of the
serialmail package) on that ~/alias/Other maildir (might want to run the
e-mails through a perl or sed regex to get rid of the Delivered-to: line) to
pass it on to another relay.

Other thing I can think of (if two *nix boxes available) is have a NFS share
(rw) on the machine you WANT to relay the messages to. Mount this share on
the machine which is receiving the mail that you want to relay/forward on.
Have them delivered to a Maildir on that share (same as above), and run a
cron job on the machine that WILL process them properly (say every 5 minutes
again), which runs a script to go to each file in the Maildir and
qmail-inject it into the queue. I've had to do this before (I have a small
perl script to do it but it isn't hard to make one up...), and it worked
fine then. Different circumstances, however.

Hope this is less complex than Tony's suggestion. Tony's makes sense, but I
don't have the time for that...an extra addition to .qmail-default and a
cron job seems easy and relatively efficient to me... Let me know what you
think!

/BR

Manager
InterPlanetary Solutions
http://ipsware.com/




Re: Fastforward AND smarthost-style operation at once

2000-08-23 Thread tony

Hi Josh,

I knew I did not write this up in vain. ;^) This is part of a mail I sent
to the list a while ago, you can get it from the archive if you want to
see the orig.

AFAIK you have two instances of qmail to do this. If anyone knows how to
do this with one instance please post the solution

-Tony

quepasa.com Email system:

NOTE: The reference to "foo.fake" below is a literal reference, I use
"foo.fake" for a strictly internal virtualhost/smtproute setup.

Principle problems (background only):

] we have outsourced our web customer email system, so
[EMAIL PROTECTED] is a customer, and has to be delivered to
criticalpath.net (cp.net).

] we have also propagated [EMAIL PROTECTED] as employees email
addresses, which should be delivered locally.

] when you out-source with cp.net they want you to point your domain MX
record at them:
quepasa.com. IN  MX 10 inbound.quepasa.com.criticalpath.net.

I was not willing to do that for several reasons:
] if cp is down, external email does not come through.
] I did not want to have to configure filters and forwards at
cp.net so all employee mail did the right thing.
] as a business continuity measure, I wanted to control the
mail flow. If we needed/wanted to change email providers, I
can make the routing change in one qmail file.

] when delivering to cp.net the mail *MUST* be to [EMAIL PROTECTED]
(cp's restriction not mine). I learned the hard way that:
 [EMAIL PROTECTED]
will not work.

The solution is obvious, accept mail at a central box
(mailx.quepasa.com) for [EMAIL PROTECTED], if:

  a.] the mail user is an employee, send it along to a bastion host
  for delivery inside quepasa.com.

  b.] if not send it off to [EMAIL PROTECTED] at cp.net. (i.e. SMTP
  connect is to inbound.quepasa.com.criticalpath.net, RCPT
To:<[EMAIL PROTECTED]>)

The problem comes up at b. the mail has already been delivered to
quepasa.com, if you attempt a forward like.
|forward $[EMAIL PROTECTED]
with a smtproute entry like:
quepasa.com:inbound.quepasa.com.criticalpath.net
The smtproute never seems (???) to be consulted, and it fails as a looping
mail.

I tried fooling around with virtual domains and header rewriting, but
it came down to this, (AFAIK) a qmail machine that receives mail
addressed to [EMAIL PROTECTED], will never again deliver it to
[EMAIL PROTECTED]

That left me with one solution another instance of qmail. I did not
want to run it on the same machine, different port. I loaded another box.


Brief description of mail flow:

] mail for [EMAIL PROTECTED] comes in to mailx.quepasa.com,

if
  jane is an employee, deliver mail according to fastforward based
/etc/aliases rule.
else
  forward mail to "[EMAIL PROTECTED]"
done

There is a smtproute for foo.fake to pair.quepasa.com.

pair.quepasa.com accepts the mail for virtual domain foo.fake, then
forwards it [EMAIL PROTECTED] pair.quepasa.com had a smtproute that
sends all quepasa.com mail to inbound.quepasa.com.criticalpath.net.

Pair's entire function is to change mail that comes in as
[EMAIL PROTECTED], back to a clean quepasa.com address.

On Wed, 23 Aug 2000 [EMAIL PROTECTED] wrote:

> 
> I'm working on a similar situation. I had tried what Dave suggested and it
> worked as documented. However, I need to be able to actually relay messages
> that don't match an alias (ie. don't rewrite the recipient address).
> 
> My normal config:
> 
> I have my qmail box acting as my primary MX and behind that sits my Domino
> server running SMTP. My rcpthosts has:
> kendle.com
> 
> My smtproutes has:
> kendle.com:mail.kendle.com
> 
> locals has only the machine itself.
> 
> So any message for kendle.com is relayed to mail.kendle.com (the Domino
> server), which accepts messages for recipients @kendle.com.
> 
> Here's what I tried:
> 
> I put kendle.com in locals and used a .qmail-default like this:
> 
> | fastforward -p /etc/aliases.cdb
> | forward "$LOCAL"@mail.kendle.com
> 
> messages are forwarded to [EMAIL PROTECTED] instead of [EMAIL PROTECTED]
> 
>  If I use:
> 
> | fastforward -p /etc/aliases.cdb
> | forward "$LOCAL"@kendle.com
> 
> the message just loops because qmail-send thinks that kendle.com is local.
> I know it's sort of nitpicky, but I need messages to be processed through
> fastforward and be relayed to the next server with the recipient address of
> [EMAIL PROTECTED] if no match is found.
> 
> Any ideas?
> 
> Thanks,
> Josh
> 

-- 
Tony Hansmann ([EMAIL PROTECTED])
Director of Technical Services
Quepasa.com, INC.
602-716-0100





Re: Fastforward AND smarthost-style operation at once

2000-08-23 Thread tibbs . joshd


I'm working on a similar situation. I had tried what Dave suggested and it
worked as documented. However, I need to be able to actually relay messages
that don't match an alias (ie. don't rewrite the recipient address).

My normal config:

I have my qmail box acting as my primary MX and behind that sits my Domino
server running SMTP. My rcpthosts has:
kendle.com

My smtproutes has:
kendle.com:mail.kendle.com

locals has only the machine itself.

So any message for kendle.com is relayed to mail.kendle.com (the Domino
server), which accepts messages for recipients @kendle.com.

Here's what I tried:

I put kendle.com in locals and used a .qmail-default like this:

| fastforward -p /etc/aliases.cdb
| forward "$LOCAL"@mail.kendle.com

messages are forwarded to [EMAIL PROTECTED] instead of [EMAIL PROTECTED]

 If I use:

| fastforward -p /etc/aliases.cdb
| forward "$LOCAL"@kendle.com

the message just loops because qmail-send thinks that kendle.com is local.
I know it's sort of nitpicky, but I need messages to be processed through
fastforward and be relayed to the next server with the recipient address of
[EMAIL PROTECTED] if no match is found.

Any ideas?

Thanks,
Josh




Re: Fastforward AND smarthost-style operation at once

2000-08-23 Thread Dave Sill

"Brett Randall" <[EMAIL PROTECTED]> wrote:

>SO does anyone know how I can have both of these operations at once? Does
>fastfoward have a similar 'if delivery doesn't work, do this' functionality?
>It really would be much easier for me and my other admins to use one aliases
>file rather than many empty ~alias/.qmail-user files...

Read the fine fastforward man page. The pass through ("-p") option
will do exactly what you want. E.g.:

  | fastforward -pd /etc/aliases.cdb
  | forward "$LOCAL"@mail.hillsong.com

-Dave



Fastforward AND smarthost-style operation at once

2000-08-23 Thread Brett Randall

Hi All...I have an interesting situation.

I currently have a ~alias/.qmail-default with:
| forward "$LOCAL"@mail.hillsong.com
which forwards e-mail that bounces locally onto another host
(mail.hillsong.com)
HOWEVER I also want to run fastforward at the same time. That is, I want the
functionality of /etc/aliases for a global aliases file, but I want any
e-mail that can't be delivered locally to be forwarded to mail.hillsong.com

SO does anyone know how I can have both of these operations at once? Does
fastfoward have a similar 'if delivery doesn't work, do this' functionality?
It really would be much easier for me and my other admins to use one aliases
file rather than many empty ~alias/.qmail-user files...

Thanks!

/BR

Manager
InterPlanetary Solutions
http://ipsware.com/





Re: smarthost

1999-10-28 Thread Mirko Zeibig

On Thu, Oct 28, 1999 at 09:32:23PM +0200, Nagy Balazs wrote:
> On Tue, 26 Oct 1999, Attila Csosz wrote:
> > I'd like to send my mails through a smarthost not directly from my computer.
> > How could I setup qmail to send emails through smarthost?
> > I've a standalone computer with PPP.
> Use serialmail.  It rocks.

Or look for Nick Leverton's hold-remote-patch at www.qmail.org, which works 
really  flawlessly and is much easier to configure.
Just put sth. like:
echo 0 > /var/qmail/control/holdremote
killall -HUP qmail-send

in /etc/ppp/ip-up and 
echo 1 > /var/qmail/control/holdremote
killall -HUP qmail-send

in /etc/ppp/ip-down and
:[ip-of.your.isps.mailserver]
in /var/qmail/control/smtproutes.

That's it!
Regards
Mirko



Re: smarthost

1999-10-28 Thread Nagy Balazs

On Tue, 26 Oct 1999, Attila Csosz wrote:

> I'd like to send my mails through a smarthost not directly from my computer.
> How could I setup qmail to send emails through smarthost?
> I've a standalone computer with PPP.

Use serialmail.  It rocks.
-- 
Regards: Kevin (Balazs) @ synergon



Re: smarthost

1999-10-26 Thread Mikko Hänninen

Attila Csosz <[EMAIL PROTECTED]> wrote on Tue, 26 Oct 1999:
> I'd like to send my mails through a smarthost not directly from my computer.
> How could I setup qmail to send emails through smarthost?

Add

:your.smart.host

into /var/qmail/control/smtproutes


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
You don't have to know anything to have an opinion.



smarthost

1999-10-26 Thread Attila Csosz

I'd like to send my mails through a smarthost not directly from my computer.
How could I setup qmail to send emails through smarthost?
I've a standalone computer with PPP.

Thanks
 Attila
 

-- 
---
- Debian 2.1 Linux  / 2.2.9 / qmail   -
- Mail: [EMAIL PROTECTED]-



Smarthost

1999-05-07 Thread Bernhard Duebi

Hi,

is it possible to simulate sendmails SmartHost feature ?

Our IP management system can not handle MX records. Though, there are all
hosts in the DNS but no email domains. I want to configure qmail to send mails
to hosts in the local domain directly and all other mails (to subdomains or
internet) to the email hub.

~qmail/control/smtproutes:
.domain.org:
:mail.domain.org

Does not do what I want, because dep.domain.org is not in the DNS.
There are too many names not in the DNS to list them in the smtproutes file.

Cheers
Bernhard



Redirecting single address to smarthost

1999-03-04 Thread Mirko Zeibig

Hello,
I am connected to the internet by ISDN. Now I have a small mail-distribution
problem. All mail from or to MX picard.inka.de is going first to my ISPs
mail-server, now he offered the possibility to distribute single addresses
to other accounts/scripts etc.
I have set up [EMAIL PROTECTED] to be immediately delivered to a bunch of
mail addresses when coming to my ISP's server. Now from my home I want to
use this distribution mechanism as well. So mail sent to [EMAIL PROTECTED]
should always be delivered to the ISP server, where it will be distributed.
Is there a way to do this using virtualdomains o. sth.?

Thanx for your answers
Mirko

[mirko@picard mirko]$ cat /etc/qmail/control/locals
picard.inka.de
borg.picard.inka.de
localhost
[mirko@picard mirko]$ cat /etc/qmail/control/me
picard.inka.de
[mirko@picard mirko]$ cat /etc/qmail/control/smtproutes
:mail.inka.de
klingon.picard.inka.de:klingon.picard.inka.de

-- 
mailto:[EMAIL PROTECTED] myhome_aka_~:http://sites.inka.de/picard
RedHat=~/rh52_isdn.htmlteles16.3c=~/teles163c/teles163c_contents.html
XL97-Classes ~/vba-classes/
be aware of culture www.uni-karlsruhe.de/~etcetera