General :: Script To Block Sender Domain

Apr 23, 2011

In our mail server we are taking lots of hits. In the maillog there's a hell of rejected mail like these:

Code:

I Have a script which search for the IP and block those. I'm having problem if IP block the RCPT IP's.

Instead i want to block the sender domain, like in this example, shareme.com. What's shall i modify in my script to do this?

Code:

View 4 Replies


ADVERTISEMENT

General :: Postfix - Smtpd_recipient_restrictions And Invalid Sender Domain

Apr 14, 2010

I am trying unsuccessfully to have a more permanent fix so I can receive emails from an invalid domain. The message is 'Sender address rejected: Domain not found' in the postfix mail logs. Fair enough, there may be an A record or MX record problem there, but there is nothing I can do about this with the Sender at present. Mail *will* come through from the invalid domain if I delete

Code:

reject_unknown_sender_domain

from the list at: smtpd_recipient_restrictions in /etc/postfix/main.cf (see coded area below for full list). I have added the Domain in question as an 'OK', both by name and by IP address, to: /etc/postfix/recipient_access, then used postmap to successfully create the database which appears as: recipient_access.db

ie recipient_access (not recipient_access.db) has contents: invalid-domain-name.com OK ; the space betw is a tab space 123.456.789.012OK ; the space betw is a tab space I suspect the failure is something to do with postmap and the recipient_access.db database file created by postmap, but just cannot work this out. Running: postconf -d indicates that the hash format is the default database format

As indicated below,

Code:

check_recipient_access hash:/etc/postfix/recipient_access is listed up front in smtpd_recipient_restrictions Postfix was restarted on all occassions Everything above was done as root and permissions on the .db files are the same as other files in /etc/postfix

From /etc/postfix/main.cf:

Code:

smtpd_sasl_auth_enable=yes
smtpd_helo_required = yes
disable_vrfy_command = yes

[code]....

View 2 Replies View Related

Server :: Re-write Sender For User1 (regardless Of Host/domain) To Firstname1@first.fi?

Mar 29, 2011

I have a server which runs postfix. The same physical server is running web and mail services for several (3) domains, which I have reserved for future use (nothing serious or valuable, just freetime activities). Server "physical" address (also static IP) is myhost.domain.com. Lets say the other domains it serves are first.fi, second.net ad third.com. I can receive mails OK sent to all of these, I have added those 3 "extra" domains to the mydestination line in main.cf. Sending e-mails also works fine, but the sender is [URL].. I want the sender to be firstname@first.fi

I tried setting sender_canonical_maps = hash:/etc/postfix/sender_canonical in main.cf, and sender_canonical contains:

user1 Firstname1@first.fi
user2 Firstname2@first.fi

and I run postmap /etc/postfix/sender_canonical, and e-started postfix. But if I send e-mail as user1, the sender becomes [URl].. so it re-writed the username part, but hot the hostname/domain part. I also tried setting smtp_generic_maps = hash:/etc/postfix/generic but the results were similar. What do I need to do to re-write sender for user1 (regardless of host/domain) to Firstname1@first.fi?

View 10 Replies View Related

Server :: Postfix Filter Outgoing Mail By Sender Domain ?

Jun 17, 2010

Im trying to get postfix to filter my outgoing mail and basically drop everything that is not in my hash table.

So far I managed to get this going

Code:

Code:

Unfortunately those rules also apply to incoming messages. My goal is to disallow users on my host to change their "MAIL FROM" to anything they like and restrict them to domains I specify. I'm aware that the local part still is variable and a user of domain "foo.com" could use a email of domain "bar.com", but still some of my troubles would be solved if I get this running.

View 2 Replies View Related

Server :: Sendmail: Block Specific Sender To Specific Recipient?

Oct 1, 2009

I'm trying to configure our mail server to block email from a specific sender reaching a specific recipient. In other words, if one of our employees is getting harassed by a 'stalker', how would one go about blocking, at the MTA (Sendmail) level, a specific sender email address from reaching a particular users inbox? We do not want to capture the email - simply block it before it consumes server resources.The Sendmail server (MTA) is a front end to our Exchange server so no user accounts exist on the Linux server. We simply use it as a SPAM and Virus scanner then forward clean email to the Exchange server.

View 6 Replies View Related

Networking :: Block A Domain Using URL Filter?

May 6, 2010

Can you show me how to block a domain from local access through URL Filter?ay be an example is a very good start.

View 10 Replies View Related

Security :: Iptable To Block A Sub-domain

Feb 23, 2011

Is it possible to block a subdomain or a one lower level directory URL access from other hosts or network ? I have a site running on my server and i want to block the particular directory under the domain, with the exception of loopback access? I mean the directory must be accessible from loopback/localhost.

[url] on port 10016(expect loopback)
[url] on port 10016 (expect loopback)

Code:

View 1 Replies View Related

Security :: Block A Domain Name In Sendmail Server

Jul 9, 2010

I want to block a domain name in sendmail server. I added the domain name and "REJECT"in /etc/mail/access file. What has to be done for the changes to take effect? when i run make command in /etc/mail dir i get following error : make: Nothing to be done for `all'.

View 1 Replies View Related

Security :: Squid Proxy Block Sites Or Domain

Apr 5, 2010

I have a problem with sites or domain blocking by squid proxy server in rehl 5. I have trying lots of time but i'm not succed.pls help me how to block sites or domain in rhel 5.

View 3 Replies View Related

General :: Give Domain Administrator Privileges To Root User In Domain Controller?

Aug 17, 2009

I want to give Administrator privileges to Root user in Linux Domain Controller

View 12 Replies View Related

General :: When Create A New Domain On My Server It Gives The New Domain It's Own Nameservers

Jun 4, 2011

I want to host 5 websites on my new virtual server so I have created 2 nameservers that point to my virtual server's IP addresses as a glue record. What confuses me is when I create a new domain on my server it gives the new domain it's own nameservers (ns1.thenewdomain.co.uk etc) do I need to change these records so they use the nameservers I created earlier? If I do? Which particular records should I change? I'm running a Unix virtual server with a Plesk control panel.

View 2 Replies View Related

General :: Add PHP User As Trusted Sender In Sendmail?

Jul 7, 2010

I have a mail script that has been running on my website for several years. One problem I had with the script was when a bad address was put in, the mail was rejected to the server rather than to the sender. I have now recently added a fifth parameter to the mail script using the -f sendmail option to set the return path.

PHP Code:

$mailsend=mail("$email","$subject","$emess","$ehead","-f$adminEmail");

The PHP manual says this:

Quote:

The user that the webserver runs as should be added as a trusted user to the sendmail configuration to prevent a 'X-Warning' header from being added to the message when the envelope sender (-f) is set using this method. For sendmail users, this file is /etc/mail/trusted-users. I do have the 'X-Warning' header on e-mails sent with this script and have asked my server administrator for some help in adding "the user that the Web server runs as" as a trusted user.

View 2 Replies View Related

General :: Change Sendmail's Sender Address?

Jun 17, 2010

We're using mutt to send out a daily email through cron. The only problem is that half the people aren't getting it, because its getting rejected as coming from an invalid address. Right now its sending out as username@localhost.localdomain.

How can I change this? I found the sendmail.cf, which I believe previous people have been editing directly, which from what I read isn't the best way to configure sendmail.

View 14 Replies View Related

General :: Compile Program For Initrd - Udp-sender Not Found?

Mar 14, 2011

I would like to modify my init.gz and add udp-sender to this image. After copying the program compiled on my system to init image I have error when I try run udp-sender: udp-sender not found When I checked ldd I saw that the some libraries are missing. I copied them from my system but still got the same error. how can I compile program for my init.gz?

View 3 Replies View Related

General :: Sendmail Options To Override Envelope Sender

Oct 8, 2010

I need to override envelope sender address from UserID@Servername.Domain to UserID@domain when sending mails from my Linux server.

1. currently if send a mail, it arrives as myuserid@linuxserver.domain.com instead of myuserid@domain.com.

2. Also, the mail is not being sent to other domains outside our comp network.

View 1 Replies View Related

General :: Scan Each Incoming Mail With Conditions On Sender Name And Subject

Jan 8, 2010

Request your help in writing a shell script for the following requirement:

1) scan each incoming mail with conditions on sender name and subject
2) scan the mail body for set of characters and email them.

general usage is as follows: I get a mail as follows from: [URL]... subject : Urgent, reply body : name : xyz contact : 12345 the script should mail the following as subject line: n:xyz c:12345 I know procmail is a good option for this, but I'm compelled to use shell script

View 3 Replies View Related

General :: Use Sender Or Any Thing In Header As Ame Of Storing Mail File In Procmailrc?

Apr 19, 2011

I want to know how can I use sender an receiver of the email in name of file for storing mail in procmailrc. I made one but it does not work.

Quote:

SUBJECT=`formail -xSubject:` # regular field
FROM=`formail -rt -xTo:` # special case
:0 b
* ^FROM.*
| sed -e '/^To: +?[0-9]*$/,/report/!d' > ${FROM}${SUBJECT}--`mktemp 20`date +%y-%m-%d-%S--`XXXXXX`

it works when I use :

Quote:

| sed -e '/^To: +?[0-9]*$/,/report/!d' > `mktemp 20`date +%y-%m-%d-%S--`XXXXXX`

View 1 Replies View Related

General :: Add To Windows Domain / Authenticate Users From Windows Domain?

Sep 27, 2010

i have a windows domain and linux ftp server. OSs windows 2003 server and centos 5.5. i would like to integrate this file server to windows domain. And would authenticate users from windows domain.

View 4 Replies View Related

General :: Postfix Giving "SMTP Server Error: 5.5.0 Sender Already Specified"

Nov 27, 2009

I'm using postfix to send some mail from my cloud server via a web page on my website that uses PHPmailer to do SMTP authentication. My cloud server has a dedicated IP for all inbound and outbound data. The problem I am having is that it sends roughly 75 - 100 messages successfully before it returns the following error for the remaining few hundred recipients in my list:

SMTP Error: The following recipients failed: example@example.com Mailer Error [URL] SMTP Error: The following recipients failed: example@example.com SMTP server error: 5.5.0 Sender already specified

View 1 Replies View Related

OpenSUSE Network :: Domain- Incapable MS Windows Version To Join Suse Domain?

Jun 9, 2010

I was wondering if there is any way to enable an MS Windows client that is otherwise unable of joining a domain to join a domain controlled by (open)SUSE? Is that inability only for joining a Windows based domain but a client that runs XP Home Edition or similar domain- incapable version of Windows could join a domain if it was controlled by Linux?Pardon my newbie style, but answer doesn't have to be detailed step-by-step, just yes/no answer with some pointers would do. I am not new to linux but new to network services... search engines weren't friendly when asked this question at the search bar...

View 2 Replies View Related

Server :: Creating Domain Form Vadddomain-domain Doesn't Exist

Apr 12, 2011

iam using centos5.2.configured qmail,vpopmail. while adding domain form vadddomain<domain.co.in> At first time domain folder get created in domains directory.and also postmaster user also get created by default.And also in mysql. Now the problem is after some times or rebooting system domain get erased automatic.also in /var/qmail/users/assign file domain name get erased.

View 1 Replies View Related

Server :: Created Domain But Not Getting Domain In /var/qmail/user/assign File?

Apr 7, 2011

i had created domain but not getting domain in /var/qmail/user/assign file.also it error /home/vpopmail/bin/vdominfo abc.co.inInvalid domain name

View 2 Replies View Related

Ubuntu Servers :: Unable To Setup The Domain - How To Use Two Domain Names

Feb 16, 2011

i have registered two domain names that i want to use to connect to my ubuntu server. I was wondering how to do this i was looking at bind9 but that didn't work that great. The server is behind a router with firewall i can connect to it using the external IP address but i like to use the two domain names if that is possible.

View 3 Replies View Related

Ubuntu :: How Interacts With Domain Users When On The Windows Domain

Feb 3, 2010

At work, we run Windows... Windows domain, windows workstations, etc. Today my boss asked me my thoughts on running an Ubuntu lab within the mixture of our existing Windows setup.

Well, that brought several questions to mind. So I understand you can bind an Ubuntu computer to a Windows domain, seems easy enough, whether you do it through Samba or the other guide I read that I kind of forget at the moment, but anyway...

I was just curious how Ubuntu interacts with domain users when on the windows domain. For example, if we have an Ubuntu machine on the Windows domain with a local user "administrator" and that's it, would any domain users be able to log into the Ubuntu work station, similar to how it is on Windows?

View 7 Replies View Related

Server :: Connecting To A Samba (not On Domain) From Windows Domain Pc?

Jun 27, 2011

i need to allow window domain controller user to use file share of linux.windows DC user can see the share file and directories of linux file server but not able to access.

below is brief--

I have a Linux machine which is on my network but not on my domain. I have configured SAMBA FILESERVER for file sharing purpose. I have a Windows XP PC which is on the domain(windows server) that I am trying to connect to a share on the Linux box. I supply my credentials but regardless of which login I use I always get Logon Failure. I have created an account on the Linux machine with the same user name and password as my domain account but so far no luck. Can I connect from a domain PC to a non-domain Linux box? Is there something else I should be checking?

View 14 Replies View Related

Server :: Domain Controller On A Current Windows Domain?

Dec 30, 2010

I'm working for a smallish non-profit that has gone through some recent growing pains. We have two sites that are currently without a domain controller, and no money for MS licenses, so I was thinking of trying to add a couple of additional Linux machines (we already run Linux for web services internally, and I've set up a test case previously to see if I could get a server to join the domain, which was a success) and was trying to find out if I can get them to act as Domain Controllers without replacing the domain. The main issue that I'm having at those locations is drive mappings are not happening correctly against our DFS file servers. The one other location that had this issue had it go away when we added a local DC. The domain is a Server 2008 domain.

View 2 Replies View Related

Ubuntu Servers :: Active Directory Domain Integration - Allow Domain Users To Authenticate Server And Access File Shares Using Samba

May 13, 2010

The company I work for, as usual, is Microsoft-centric. I'm attempting to integrate my Ubuntu server into the domain to allow domain users to authenticate to the server and access file shares using Samba. Here's my current configuration:

[Code].....

View 9 Replies View Related

Server :: Forward A Domain To Another Domain With Musking?

Aug 3, 2010

My customer has a domain hosted by me and he has another domain hosted by another isp. He would like to have this domain am hosted to be forwarded so thwt upon entering the url he should have the website which is hosted by this other ISP displayed (the url of the website be musked). How do i configure my DNS at achieve this?

View 1 Replies View Related

Server :: Redirection Of A Domain To A Subtree Of Another Domain?

Aug 10, 2010

I need to redirect a domain to a subtree of another subdomain , for example : [URL] should be redirected to [URL] How should I do this ?

View 1 Replies View Related

Server :: Sender Name Rewriting In Postfix?

Jan 8, 2010

I want a mail server that can relay mails to the internet using GMail and fetch the mails of different accounts into the mail server and distribute them to their respective users. I am using Postfix, Fetchmail and Dovecot. I have a PC with 3 users.I use the PC having Ubuntu 9.04 and share the internet. We all send mail and retrieve mail. We do use Evolution and Mutt sometimes. We want to send our mails with our email_ids without even logging in.

Hostname
mail.myhomepc.com
Domain
myhomepc.com

[code]....

I have created my custom certificate using SSL. I've created the Postfix's main.cf file following a tutorial on the net. Currently mails are going fine, but with our local email_ids. I want Postfix to rewrite our local email_ids with the equivalent email_id on the net.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved