View Single Post

  #5 (permalink)  
Old 12-13-2006
Doug Summers
 
Posts: n/a
Default Re: Forward Local Mail

Greg Hackney wrote:
> Doug Summers wrote:
>
>> I'm allowed to use ssh to initiate contact outside the firewall but
>> not the other way around. I was going to use rsync over ssh to get the
>> mail files. The question I have is which mail files to copy. I'm
>> basically only concerned with root mail.
>> Doug

>
>
> I suspect that what you are thinking of doing is going to be problematic.
>
> If you just grab any file that's in /var/spool/postfix and ship it over,
> you might inadvertantly get mail files destined for somewhere else
> (unless you first examine the files with postcat or mailq or some method).
>
>
> The only thing I can think of that might work fairly seamlessly using
> standard software, is to use the UUCP package to queue the email destined
> to the inside system, and then have the inside system pick it up from the
> outside system via UUCICO, via the SSH port 22 hole in the firewall, or
> some other open port. UUCP is normally port 540 I think (haven't had any
> need to use it in about 20 years).
>
> --
> Greg
>

I got the process to work, copying over the files in
/var/spool/postfix/maildrop. The problem now is when these files are
processed (postfix flush) the sender looks like the machine doing the
sending not the original sender. This is not a huge issue but if fixable
it would be nice.
Reply With Quote