Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quick dot qmail question

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
0
36
NL
Hallo,

Hopefully someone can refresh my memory. I have an account receiving quite a bit of spam, and I want to allow mail only from a certain domain.

In my .qmail file I have this:

| echo "$SENDER" | grep -Eqi "(@mydomain\.com$" >> /dev/null
& goodmail@mydomain.com

Will this work in forwarding all mails from mydomain.com to another address, and ignoring the rest?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top