Posfix - deny sender emails containing specific text in username [closed] - block

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 months ago.
Improve this question
Postfix, Debian. I'm receiving spam and I'm not sure how can block it, because spammers uses different mail address everytime.
For example:
mike.newsletter30#gmail.com
mike.sfsd4f564s6df45ds#gmail.com
mike.newsletter30u#gmail.com
etc.
I have setup sender access file, so I can block mails from specific servers like this:
mike.newsletter30u#gmail.com REJECT
But it's not enough. I need to setup more specific rule, for example all senders containing 'mike.' should be blocked in this case.
Unfortunatelly, rule like this:
mike. REJECT
doesn't work. I've searched google and postfix docs I still can't figure out how to do this. Is this even possible?
Do you have any ideas?

2 Years and no clarification :S
Note that it is a regular expression, Using:
/^(F|f)rom: *mike*#gmail.com/
won't work because you are thinking of * as a wildcard, regex uses * to match preceding character 0 or more times, the dot (.) is used to match any character, so the regex to match fsdghfsdjmike84329#gmail.com should be something like
/^(F|f)rom: .*mike.*#gmail.com/

First ensure that you have enabled header checks in your main.cf
header_checks = regexp:/etc/postfix/header_checks
Then add a matching rule to your checks for example:
/^(F|f)rom: mike.*#gmail.com/ REJECT JUNK is not allowed by this server
Finally restart/reload postfix to active changes.

Related

Is there a way to view/interact with a website without entering in it? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 days ago.
Improve this question
So my school has blocked all websites (for now at least) and I'm wondering if there was a way to access them without entering into them. What I've thought is that this could be done with google as google search can show you certain parts of pages.
Also, the current configuration of the firewall allows you to do google search and access certain websites. I also know that they perform this using a man in the middle attack intercepting SSL connections. Is there any VPN, tool or script that can bypass this? Something to do with packets obfuscation using XOR gates? I've tried using many different VPNs but all seem to not work.
Thanks in advance.

How web sites get and put on their sites what we type in search engines [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
When we find in search engines, the text we typed is seen in result list with some links as it is. But the matter is, when we go to those sites, the same text is also there, but saying 'not found'.(For example, lets say, we type 'best software to doSomeThing' in google, the search results shows results including what we typed. When we go to some links listed in search results, those sites also have the same text 'best software to doSomeThing-Not found or saying what ever..' the amazing thing is, some sites is not relevant to what we find. that means if we find a software, some sites on tourism,drugs also says about our software)
I want to know how those sites catch what the search engines finds or what we type in search engines?
Is it something done with Javascript or any other methodology?
You can check the HTTP_REFERER and parse the query string looking for q=
these can be done using several ways
you can use query string parameter which is appended with url of a page u you want to visit
or you can use hidden fields in webpage,like view state,control state
hope this helps...
Edit:
here is the link,that shows basic functionality of query string..
http://dotnet.dzone.com/news/aspnet-query-strings-client-si
edit 2: check
http://docs.oracle.com/javase/1.4.2/docs/api/java/net/URL.html#getQuery%28%29
and this ones too
http://docs.oracle.com/javaee/1.3/api/javax/servlet/ServletRequest.html

Single domain/different localizations SEO? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm planning on using IP geolocation to get the user's country and then display the site in spanish or english without changing the domain.
How do I handle SEO?
Will search engines index both versions of my site? will people from latin america be able to find the spanish version?
You have several options. Which ever you choose: Do not rely on setting a cookie, because Google will simply ignore it and will only get pages in your default language. Google actually needs any kind of signal inside your URL that specifies the language.
1) Use sub domains like en., de., fr.* etc. When a new user arrives, make a redirect to the corresponding sub domain. However, I assume you include sub domains in your statement of not changing the domain.
2) Use language dependent prefixes in your url patterns like so:
/en/blog/, /de/blog/, /fr/blog/ and so on.
Or for your homepage use /de/, /fr/, /en/
New in Django 1.4: i18n URL patters
3) An alternative approach is using get parameters like Google does: /blog/?hl=en or /blog/?hl=fr. This approach easily gets messy.
As for your homepage "/", make a redirect to the corresponding language, no matter if you choose prefixes or get params.
My personal choice is mostly suggestion number two. You may take a look how we do it on Pixabay.com - one of our projects using i18n URL patterns.

Keyword on Domain Name vs. Brand Domain Name [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
A solution to get quick exposure:
Since my website just got lunched 3 days, i still have time to change my domain name. I decided to do is:
Pick a domain name with keyword tacked before domain name as of: {Keyword}Brand.com (looks ugly)
Keep it for at least 1 year till my site get fair exposure, just to reach to my competitors.
Move back to Brand.com (Probably). I know i will loose ranks, but it won't be hard to bring it back because the website is already being exposed and used by many.
Question:
Do you believe this is a good temporary solution?
Hence, The keyword is non-English word.
So get everyone to learn your name and then change it and get everyone to learn your new name? Does that sound like a good idea? Why not build a strong foundation and then keep building upon it? Races are marathons, not sprints. Think long term, not short term. If you're actually good at what you do you will eventually outrank your competitors for all of your keywords even without your keywords being in your domain name. If you're not good at what you, then hacks and tricks like this won't help you anyway.

Permalink to the last page of a thread in phpBB [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
A Question from the user side, rather then the admins.
Is there a way to bookmark or link to a thread and make phpBB always show the last page of the thread, regardless of how many pages long the thread actually is?
I found it helpful to hover an unread-topic-icon. I saw:
xyz/viewtopic.php?t=123&view=newest
As Trilarion mentioned before, parameter t determines the topic. view=newest is the necessary part
Edit
For clarification: I saw it on a phpbb 2.0 board.
As of phpbb 3.0.12 I haven't found any officially documented way but the following might do the trick:
xxx/viewtopic.php?f=yy&t=zzz&start=50000
where only the start=50000 is important. the f and t parameters are to determine the subforum and the thread, the start parameter determines the post in the thread. Setting the value of the start parameter to a ridiculously high value seems to trigger phpbb to show the last page.
Unfortunately not, you have to retrieve how many pages there are first.
instead of...
phpBB2/index.php?threads/very-interesting-thread-you-cant-stop-looking-at/page-58
do...
phpBB2/index.php?threads/very-interesting-thread-you-cant-stop-looking-at/latest