[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

re-sending email from a mailbox during server migration

Posted on 2004-11-26
2
Medium Priority
?
285 Views
Last Modified: 2013-12-15
I'm moving mailservers, and for a particular user, I'd like to resend the email from his mailbox to the new server.  I remember that there is a command to do this, but for the life of me, I'm drawing a blank... perhaps it was formail?
0
Comment
Question by:periwinkle
2 Comments
 
LVL 38

Accepted Solution

by:
wesly_chen earned 2000 total points
ID: 12682740
Hi,

$ formail -s /usr/sbin/sendmail -v -t -oiee < (path to his mailbox)

Wesly
0
 
LVL 15

Author Comment

by:periwinkle
ID: 12684494
Thanks Wesly -

I had finally found it in my notes as:

formail -f -s sendmail user@address < /var/spool/mail/user-mailbox

the -f according the man pages means to "Force formail to simply pass along any non-mailbox format (i.e., don't  generate  a  `From  ' line as the first line)."

Thanks  - you get the points, and this goes into my bookmarks!

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 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