LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-14-2016, 04:18 PM   #1
rocaflqu
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Rep: Reputation: Disabled
Postfix Configuration


hi guys,

Is there a way to discard all email in postfix?, example, now i send email for xxxxx@gmail.com, the result is successful.

I need discard all email for any domain, example , send email for xxxxx@gmail.com, the result is failure.


Because, i need run security test, but, when test is running, send mails to all domains, so i need configure the postfix when test is running block send mails.
------

- create a drop file in /etc/postfix

* discard :

- postmap drop

- then edit /etc/postfix/main.cf

drop_maps= hash:/etc/postfix/drop

and restart the postfix service.

But, continue send email successful.

Thanks guys.

Last edited by rocaflqu; 06-14-2016 at 04:45 PM.
 
Old 06-14-2016, 08:09 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Are these incoming mails or outgoing mails? Your post implies that they are outgoing mails, but it's not quite clear.
 
Old 06-15-2016, 07:25 AM   #3
rocaflqu
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Sorry xD, need block all email, send or receive from server, but the most important is block send mail from server postfix.

Current Settings:

[root@postfixserver]# mail xxxx@gmail.com
subject: test
test
.
EOT
(successful)


I need:

[root@postfixserver]# mail xxxx@gmail.com
.....................................
(failure or block,reject,discard)

Thanks guys
 
Old 07-01-2016, 12:31 PM   #4
rocaflqu
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi guys;


Any solution for this problem?

pls need help >.<
 
Old 07-14-2016, 09:49 AM   #5
rocaflqu
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi guys;

Any solution for this problem, or there is no way?

thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix configuration sachin.davra Linux - Newbie 8 02-14-2014 09:33 AM
Fetchmail Mail Configuration And Postfix Configuration Senthilv Linux - Server 1 01-06-2011 01:47 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM
Postfix configuration help. mdpolaris Linux - Software 7 10-06-2006 02:31 AM
Postfix Configuration Graanco Linux - Software 2 07-06-2002 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration