Solved

mailproto syntax

Posted on 1998-06-17
11
223 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
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 

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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
This program is used to assist in finding and resolving common problems with wireless connections.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

632 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