Server :: Postfix Setup To Block Spam From / To Own Address
Jun 21, 2011
I have set up a couple of postfix servers for my domains, but the only thing I am missing now is this: How to block the public sending mail from my email to my email? I have managed it with SPF, but surely there must be a better way, that returns "relay not allowed" to the client. The SPF method costs too much, since it must make a dns request for each mail. So far, I have not gotten many of these mails, unless when testing my mailserver, but as I see it, anyone should not be allowed to send mail from abuse@mydomain.com to abuse@mydomain.com.
Somebody must have thought about this a long time ago, and there is simply that little line in main.conf that I'm missing.. My setup is this (virtual): I have a primary mx, with postfix, courier IMAP/POP3 server, a user database, and sasl via saslauthd. I also have a secondary mail server (backup mx) with no sasl auth, but with a copy of the mail users in the virtual tables, but added as relay_* users instead.
Spamassassin and SPF testing is replicated too, so most of the stuff should work, but I simply cannot find a setting in Postfix that denies someone to mail FROM my address TO my address. When mailing from my address and out in the open, they are required to authenticate, but not when using one of my my domain addresses, and also targeting my domain addresses.
As said, It is possible with a strict SPF setting, but that is at a cost for every lookup. It would be quicker for postfix to lookup the sender and the recipient in the relay/virtual tables, and deny if both addresses were in the recipient tables, and sender is not authenticated.
View 5 Replies
ADVERTISEMENT
Jun 23, 2011
i keep receiving this damn annoying spam: Quote: No Cost Website Analysis and Ranking Report Rank mysite.com at the top of the 3 major search engines Do you want to know why your competitors are showing up at the top of the three major search engines and how you can rank on top? To increase the number of visitors to your website it is crucial that you have a top search engine position. If you are like most people, you will spend countless hours trying to get traffic to your website.
Our search engine optimization experts will run a detailed website ranking and analysis report showing you exactly where mysite.com currently stands in all the major search engines along with the recommendations of how we can increase your ranking on Google, Yahoo and Bing. For Your No Cost Analysis Report and More Info Please Click Here
[Code]...
i get about 30 of those a day, everyday, for a long time. ive asked the ISP to stop it (theplanet.com) they are not responding and the spam continues. i was thinking is there a way that i can tell postfix to reject emails that contain "No Cost Website Analysis and Ranking Report" in their subject? there must be a way but i dont know how.
View 4 Replies
View Related
May 17, 2011
Very new to Ubuntu and Linux so this may be a simple one. I've recently setup an Ubuntu Server 10.04 box as a mail relay running Postfix and Amavisd-new (Spamassassin & ClamAV) and this has been working really well. I started to get a few emails through today with the following header[URL]..(removed domain name) The name's always in quotes and random. The fqdn is that which I configured in postfix as $myhostname. I can't figure out how this address is being used. This box is only used for incoming mail and acts as a relay to Exchange. Exchange doesn't send out through it. The only thing that may be going outwards is bounced messages from Exchange which are almost exclusively to linkedin.
The fqdn isn't public. This box isn't even part of our internal domain, it's just named that way with manual DNS added. Anyone seen this before? Will this header have been part of the message when it arrives at postfix or could this have been added by postfix itself?
View 2 Replies
View Related
Jun 21, 2011
My postfix server has been working great for the last 1-2 years. Lately the number of spams encreased (from 1-2 every day to aprox 8-10 every day per domain for some domains ).I post here the output of postconf -n. Maybe someone gives me some advices about what cat I change or how can I optimize. I must recognise that I don't fully understand details of how postfix and all the restrictions works together, but I will document every advice.
View 4 Replies
View Related
Jul 27, 2011
I am using postfix as spam Mailscanner to protect my mail server running sendmail. The problem is that when I forward an email from MailScanner mail me back with the following error:
<postmaster@localhost.@mydomain.com.>... Real domain name required for sender address (in reply to MAIL FROM command))
Jul 27 13:15:59 smtp postfix/local[28465]: C68AC1000001: to=<root@smtp.mydomain.com>,
[code]....
View 1 Replies
View Related
Aug 19, 2010
I have postfix installed for a while now. It seems as though my server is sending out spam to other people which is really bad...I got emails like this one:
Code:
Delivered-To: email@provider.com
Received: by 10.223.107.17 with SMTP id z17cs2705fao;
[code]...
View 4 Replies
View Related
Apr 16, 2011
I'm new here and I'm sure this question has been thrown around a lot but I just couldn't find a solution. I have a networking website I've setup and we need to send notification mails to our members depending on activity related to their profiles(messages, comments etc).We are hosting the site on Centos5.6 with VirtualMin and are using Postfix as our MTA. We also use google apps for email on the site. Heres the problem, the mails go through for some gmail users but more often than not, they end up in gmail,hotmail and yahoo spam.We've setup the appropriate SPF codes on the server, DKIM and rDNS works fine.v=spf1 ip4:xx.xx.xx.xx a mx include:_spf.google.com ~all Below is a sample email that goes directly into gmail spam. I've replaced the actual values with dummy text (Ip, Domain etc)
Delivered-To: my.email@gmail.com
Received: by 10.143.165.5 with SMTP id s5cs223598wfo;
Fri, 15 Apr 2011 08:38:22 -0700 (PDT)
[code]...
View 1 Replies
View Related
May 8, 2009
It's possible to configure Postfix in order to check spam only for outgoing email?
View 2 Replies
View Related
Sep 17, 2010
Am using atmail server but recently i have been facing the problems of spams which caused my ip address to be blacklisted to some dnsbl check. am using below dnsbl to filter spams to my atmail
View 1 Replies
View Related
Feb 26, 2010
I followed this How To (https://help.ubuntu.com/community/Postfix) in order to add smtp authentication to my Postfix installation used as spam filter for my exhange server, and it'seem all ok; the only thing that I don't understand is where I list all the users (with passwords) that I authorize to send mail through my server...
View 3 Replies
View Related
Nov 20, 2008
who manage Postfix servers, what do you recommend is the best way to refuse all incoming and outgoing mail to specific domains? I want a blacklist of domains such as:
- AOL
- Yahoo
- MSN
- Hotmail
- Gmail
Is there a proper way I can tell Postfix to please deny sending and receiving SMTP traffic to and from those specific domains I specify? I see no need in my corp. mail server has to communicate in any way to those. I allow access to all those accounts via port 80/443 so they can just login to the web and send non business related junk this way.
View 7 Replies
View Related
Jun 18, 2009
I am running a spam filter on debian lenny 5.1 with postfix, amavis-new, spamassassin, and clamav. It works pretty well but I would like to finish tweaking it to minimize the mail getting quarantined. It really isn't quarantining anything that isn't spam, except for an occasional list mailer. However, the quarantine is huge, and takes a while to go through. I noticed that much of the spam is coming from foreign country tld's like .cz is there anyway to have postfix run a check on the header and if the email, or smtp origination is from a server from a foreign tld have it just rejected. I can whitelist anything if need be in the future but as of now we don't do any business overseas and don't need to worry about blocking legit email.
I think this should be possible, however, I am unsure of the syntax for the file, where to put it and if wildcards are possible in domain blocking like
Code:
*.cz REJECT
View 2 Replies
View Related
Feb 3, 2010
Does anyone know how to block spam in the messenger Empathy? In my case it got to a level where I consider it as very annoying.
View 1 Replies
View Related
Apr 30, 2009
I just setup SpamAssassin and what not following this tutorial
[URL]
I am using CentOS 5.3. I was half way through that and got an email that had ***SPAM*** in the subject. Haven't received any more. First of all I want to know if spam will still get delivered, and just have a modified subject. Second, I want to know how to set it up so Spam goes to a user's spam mailbox (Virtual Users). And third of all, is it possible to disable spam filtering on a user basis, preferably using MySQL tables? Is it possible for users to mark a message as spam, and all further messages sent from that address will be sent to spam folder but only for that user?
EDIT: Yes spam is getting delivered with a modified header, on the server site, how can i deliver to spam folder? how to create IMAP virtual mailboxes on request without having to send an email to them first? Using virtual users with Courier Imap
View 3 Replies
View Related
Aug 26, 2009
I want to block some ip address that are attacking my server and making my ssh port busy. On searching the google, I found
Code:
iptables -A INPUT -s ip_address -j DROP
I will add this rule in iptables. My questions are:
1) do I have to do
Code:
chkconfig iptables on
so that it load the iptables at boot. I am wondering why do I need this because iptables is already modified and it loads the iptables at boot time if firewall is enabled.
2) When we add the above rule, which file is modified? Another way, where are this rules stored? It is not in /etc/sysconfig/iptables and /etc/sysconfig/iptables_config.
View 1 Replies
View Related
Jun 30, 2010
I have create distro groups in zimbra and have add member sin there. when i connect an account on mapi etc. [URL] i have create a persona in order client to send from [URL] rather than [URL] How can i restrict inside postfix to relay using [URL]?
View 1 Replies
View Related
Dec 27, 2010
I need to have a postfix server to rewrite the sender's address. For example, if the sender is: [URL], then the recipient would receive all emails from [URL] as [URL]. I tried using the generic file and created a table out of it, but this did not work:
postmap /etc/postfix/generic
-rw-r--r-- 1 root root 9977 Dec 27 15:24 generic
-rw-r--r-- 1 root root 12288 Dec 27 15:25 generic.db
I added this line to the generic text file:
[code]....
I am running two boxes with postfix 2.3.3. and 2.1.1 respectively. Both need this configuration. I also added this line:
smtp_generic_maps = hash:/etc/postfix/generic
on the main.cf file. However, this did not work. The one running postfix 2.3.3 is on Centos 5.5, the other one is on SuSe Enterprise 9.
View 14 Replies
View Related
Apr 21, 2011
Does anyone know if it is possible to set up Postfix to receive all email coming to mydomain.com and forward them to 2 different spam filters? All mail needs to go to both spam filters then onto our Exchange server
View 1 Replies
View Related
Aug 25, 2009
I currently have the following email server set up:
Postfix with mysql backend
Dovecot
clamav
spamassassin
amavisd
And it all works great. However I would like it for amavisd to forward all the marked spam into a folder on each user account, but I cannot figure this out.
View 5 Replies
View Related
May 21, 2010
I have an issue with postfix and my server.One account (mine) is not considered as spam by no one. But all the other users are treated as spam by yahoo, and hotmail. And I can't understand why.Here are the header from one user who sent an email to my yahoo account (treated as spam):
Code:
From userNAme Sat May 22 01:52:27 2010
X-Apparently-To: me@yahoo.ca via 98.136.183.25; Fri, 21 May 2010 14:52:55 -0700
[code]...
View 5 Replies
View Related
Jun 28, 2011
just followed the guide on how to setup Ubuntu 10.04 server + postfix from here: [URL]..ports 110, 143, 25 are forwarded on my router to LAN IP of mailserver.
postfix settings
hostname: server1.mydomain.com
example email: user@mydomain.com
I can receive emails in outlook, if they were sent from the mailserver using: mailx user@mydomain.com
However, external emails from hotmail.com to user@mydomain.com never arrive. I'm thinking this is because of the DNS host records for my domain. Here's what I have.
[Code]...
View 8 Replies
View Related
Mar 20, 2011
CentOS 5 box was just setup to replace a crashed old one. I have postfix.admin installed and working, added users (confirmed from mysql command line) and can login using telnet server pop3 with the user information. The problem I am left with is just receiving mail. I have both squirrelmail and roundcube installed, and can also authenticate using both (/var/log/maillog shows);From either webclient I can naturally send mail out and both yahoo and gmail client confirms, yet a reply shows nothing, and nothing ever shows in the maillog. Firewall is shut down but I don't know postfix enough to see how to test, or is something else grabbing the mail.
I can provide anything necessary, just let me know what. As I see it (just so far) Postfix should be the server that answers and receives the mail, dovecot is more the pop/imap the client would use, so I think it's a postfix issue. If so, can I turn up the debugging, etc. but again, I think all mail received should appear in the maillog file 1st as I see the outbound mail go fine!
View 3 Replies
View Related
May 22, 2011
i was tasked to setup a proxy server to block access to some websites. i'm using centOS 5 and Squid 7:2.6 STABLE21-6.e15...i appended the following and tested the configuration with the supposed server i am using and the it does seem to work but now i'm wondering how i can test it with a client computer..i have 2 LAN cards and i just connected the other to one PC (can a direct connection work or does it need to pass thru a switch or hub)...i just can't figure out how it should be... how do i configure the 2nd LAN card to use this computer as its proxy server?
View 8 Replies
View Related
Nov 4, 2009
How can I setup "reverse dns check" option in Postfix ?
View 1 Replies
View Related
May 22, 2010
I have a Postfix+Dovecot and virtual users setup taken from here. I've got virtual users authenticating using a password file. But I'd like to lock the service down further, so authenticated users can only email other authenticated users (those listed in the same password file) - so it's a closed community. I don't seem to be able to stop authenticated users mailing outside the community.
View 2 Replies
View Related
May 14, 2011
It wasn't too long ago that I discovered Linux/Ubuntu (in terms of actually USING it) and I've been completely blown away by the capabilities it puts in the user's hands! To think that someone can take an old desktop from a trash pile (literally, in my case) and turn it into a web server for ZERO dollars is absolutely crazy.
Anyway, I've been using said desktop as a sort of "dummy" machine to learn Linux. I want to be clear that I've got another computer for personal use and that I understand that setting up server software on any computer poses a security risk. Having said that, I have a few questions regarding mail servers and their setup on Ubuntu. Again - I'm comfortable with what I've done so far in Ubuntu (installing packages, terminal interaction, basic usage)
My question is mainly this: if you have, say, a domain name through DynDNS (let's say example123.com) and it points to an Ubuntu system, does something like Postfix enable you to make your own email addresses such as user1@example123.com and have an email server from wherever the Ubuntu system is?
I've been following the basic Postfix setup here and have had success so far (down to the "Adding your local domains to postfix" section) bu wanted to make sure that what I'm intending to do is what I'm doing (haha... i hope that makes sense). That is: get domain name at DynDNS, host pages on LAMPP server, use Postfix to facilitate incoming/outgoing email for that domain name.
View 7 Replies
View Related
Jan 5, 2011
I have setup postfix and postfixadmin on a CentOS 5.5 server and the install appears to be ready to go. I have never used postfix and postfixadmin and I am having a hard time finding any documentation on how to setup and administer the postfix server with Postfixadmin. This is simply a test and alerting server and will not be hosting user mailboxes. I am only looking for the basics I am not going to need to setup anything complex
View 1 Replies
View Related
Jan 2, 2010
This is a transcript I get emailed at least once every day, usually about 3 to 10 a day recently.
Transcript of session follows.
SMTP server: errors from unknown[ip address]
<boring stuff snipped>
In: RCPT TO: <server@my domain>
Out: 550 5.1.1 <server@my domain>: Recipient address rejected: User unknown in local recipient table
Session aborted, reason: lost connection Now I cannot seem to find anything via Google, as when I put "server@" anywhere in the string, I just get web hosting or other kroomst. The emails usually come from legit places, usually hotels. Does this mean they are sending bad emails, i.e. they have a Trojan/worm, or is this a live hack attempt?. I believe the later, as I might get upto 3 domains from the one ip address, which is always, NOT associated with the listed domain. Not causing me any issues, except I have been getting a lot recently.
View 4 Replies
View Related
Feb 23, 2010
Setup my postfix mail server and courier-imap/pop. My postfix server now is working with tls and saslauthd, I can send/receive email inside my domain as well as outside. However, I need two separate smtp and imap/pop3 server, I mean two machine - one with smtp function and one with imap/pop3 function working together.
View 4 Replies
View Related
Jul 1, 2010
venturing into unfamiliar territory so I'm hoping someone can help me and make things a little more understandable for me. I have setup Postfix on a standalone server connected directly to the internet. I have got inbound and outbound email working for the most part, but I am worried about security.My fear is that if I leave port 25 open to the outside world spammers will find this and start relaying mail through it and eventually blacklisting the IP attached to this box.
For now, I am hosting mail for a single domain and single user (me) with a few aliases. I plan on expanding to IMAP and SMTP access from the outside at some point, but for now I've been using Mutt in a shell and it's fine for my needs for now.
Here are my current Postfix settings:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
[code]....
View 3 Replies
View Related