Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mailproto syntax

Posted on 1998-06-17
11
Medium Priority
?
227 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
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 

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 1290 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

715 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