2018. 3. 8. 11:09 WorkHolic

이메일 재전송

728x90
반응형

서버나 아웃룩에서 저장한 메일을 원본 그대로 전달할 때.

$ formail -s /usr/sbin/sendmail -v -t -oiee < saved.eml


참고사이트 : http://www.anhalter.net/blog/?page_id=825

HOWTO resend messages from dead.letter with sendmail

Some days ago I had to challenge a 350MB dead.letter file. The problem was, howto resend all the messages from dead.letter file. I discovered a good solution on lists.freebsd.org.

One solution is to install the procmail port (ports: mail/procmail) which contains a stunningly useful utility called formail(1). Amongst formail’s many talents is the ability to split up a mbox format mailbox into individual messages and pipe each into a program.

So in order to resend all of the messages in your dead.letter you could try:

    $ formail -s /usr/sbin/sendmail -v -t -oiee < dead.letter

Or to split up the dead.letter mailbox into individual numbered messages:

    $ formail -s /bin/sh -c 'cat > msg.$FILENO' < dead.letter

and you can pipe each message into sendmail as above to re-send it:

    $ /usr/sbin/sendmail -v -t -oiee < msg.999

 


728x90
SMALL
Posted by gromet

블로그 이미지
나는 운이 좋은 사람이다 나는 나날이 점점 더 좋아진다 내가 하는 선택과 행동은 반드시 성공으로 이어진다 내게는 인내력과 지속력이 있다 네게는 좋은것들만 모여든다
gromet

공지사항

Yesterday
Today
Total
반응형

달력

 « |  » 2024.7
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

160x600