Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

How to change subject and message body using Qmail

Mailing list manager

6:04 am on Jun 17, 2008 (gmt 0)

New User

5+ Year Member

joined:June 17, 2008
posts: 1
votes: 0

Hi guys,

I have installed qmail on linux redhat 9.
I am able to send email using .qmail file.

I created a .qmail file: .qmail-softb having following content:

¦preline /usr/bin/procmail procmail-test ¦¦ exit 111

Then I created procmail-test file containg following code:

:0 c
! test@localhost.localdomain

I used the following command in command line:

#mail softb
Subject: test sub
test msg body

As a result the mail was send to bounce@localhost.localdomain email as well as forwarded to test@localhost.localdomain.

But when I try to change the content in subject and message body, the content is not changing.

My sample requirement as followiing below:

.qmail file content:
¦ preline /usr/bin/procmail /var/qmail/test/procmail-test

[u]Sample mail[/u:
To: james@xyz.com
From: Mosiur
Subject: Hi #firstName#
This is a test message for #firstName#
Username: #userName#
Password: #password#

Admin test

And I want to send this message as

To: james@xyz.com
From: Mosiur
Subject: Hi James
This is a test message for James
Username: james123
Password: flowers

Admin test

How to do it. Kindly help me.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members