Solved

mailproto syntax

Posted on 1998-06-17
11
221 Views
Last Modified: 2013-12-23
How do you create a FORWARD using pmproto? I was told pmproto is a program that simplifies the management of "recipes" for forwarding, foldering, etc. It is supposed to create the appropriate .forward and .procmailrc files.

I've created a file .mailproto with simply - FORWARD { myname@domain.com | hisname@domain.com} in it. Whare's my syntax wrong or what else have I done wrong?
0
Comment
Question by:jgla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 2

Expert Comment

by:seedy
ID: 1582771
What is that you want to do?  
To forward all mails that were sent from 'A@some.net' to 'B@another.net', place the following line in .mailproto
    FORWARD FROM A@some.net B@another.net

To forward all mails addressed to 'A@some.net' to 'B@another.net', place the following line in .mailproto
    FORWARD TO A@some.net B@another.net

And then run pmproto to process these commands.
0
 
LVL 2

Expert Comment

by:seedy
ID: 1582772
Following is a snippet from the man pages:

FORWARD to www myself@somewhereelse.com
    All  mail  with a To address matching "www" will be
    forwarded to another address.

FORWARD to sales partner@bighouse.com
     All mail with a To address matching "sales" will be
     forwarded to another address.

FORWARD from boss@whitehouse.gov ceo@something.com
     All    mail    with   a   From   address   matching
     "boss@whitehouse.gov" will be forwarded to  another
     address("ceo@something.com").
0
 

Author Comment

by:jgla
ID: 1582773
I made a file in notepad like this
FORWARD TO joe@domain.com joe@company.com
, the renamed to .mailproto, then ftp'ed to proper directory. Then used telnet to run pmproto. I'm still not getting the forward. Any suggestions?




0
Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

 

Author Comment

by:jgla
ID: 1582774
I made a file in notepad like this
FORWARD TO joe@domain.com joe@company.com
, the renamed to .mailproto, then ftp'ed to proper directory. Then used telnet to run pmproto. I'm still not getting the forward. Any suggestions?




0
 
LVL 2

Expert Comment

by:seedy
ID: 1582775
What was the output/display when you run pmproto?
0
 
LVL 2

Expert Comment

by:seedy
ID: 1582776
pmproto expects the file '.mailproto' to be present in your home directory.  Verify this by executing the following command on your unix host.

   $ cd
   $ cat .mailproto

0
 

Author Comment

by:jgla
ID: 1582777
when I run pmproto I get
'/usr/home/myname/.mailproto...
done'

When I try $ cd or $ cat .mailproto I get 'command not found' or 'undefined variable'

when I type 'more .mailproto' I get the contents of the file. they read: 'FORWARD TO hisname@domain.com hername@domain.com'

I created the file in Notepad and used an FTP client to upload it. When I read it the first time using telnet it had changed so I edited it using VI. Don't know if this fact is involved.
0
 

Author Comment

by:jgla
ID: 1582778
I've almost got it - I think. I changed the 'TO' to lower case and it appeared to work. I need to know if this leaves a copy in the mailbox - I need the command that forwards, then cleans it out of the mailbox.
0
 
LVL 2

Expert Comment

by:seedy
ID: 1582779
No, this does not leave a copy in the in(mail)box.
0
 

Author Comment

by:jgla
ID: 1582780
So I'm ready to concede my 435 points. Last thing - I probably need to to set up for any realistic combination of case mistakes right? Like me@mysite.com and Me@mysite.com and Me@Mysite.com, right?

Thanks, jgla
0
 
LVL 2

Accepted Solution

by:
seedy earned 430 total points
ID: 1582781

No, the mail addresses are case insensitive.  So, me@mysite.com and Me@mysite.com and Me@Mysite.com are all treated as same address.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Comware OS Simulator and GNS3 5 227
Wireshark question 1 44
PXE boot for ESXi on CENTOS 7 25 114
How to pinpoint the source traffic flooding LAN intermittently? 6 29
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question