Solved

mailproto syntax

Posted on 1998-06-17
11
215 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
  • 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
 

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: IanTh
Hi Guys After a whole weekend getting wake on lan over the internet working, I thought I would share the experience. Your firewall has to have a port forward for port 9 udp to your local broadcast x.x.x.255 but if that doesnt work, do it to a …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now