General :: Restrict Users To Send Mail To Outside Domains
May 28, 2011How to restrict users to send mail to outside domains in qmail server, i have centos and qmail installed
View 14 RepliesHow to restrict users to send mail to outside domains in qmail server, i have centos and qmail installed
View 14 RepliesI have a server with a static IP that I use as a sendmail server. The problem is that port 25 is exposed. As a result, anybody can login to the SMTP server and send mail from my domain as a user that does not exist as well as email from other non-existant domains. I'm sure there are sendmail options that I can enable to do some checks, like if the user exists on that server or if the domain is the same on the server, etc. I was wondering if you guys can mention a few that I can add to my sendmail.mc file?
I have thought about auth login, the problem is if auth login is on my public port then I won't be able to receive email from gmail because it would be unauthenticated. Also, I only have 1 mail server. I know the ideal solution is to have 2 mail servers. One for outgoing mail/internal mail server where you can enable auth login and the other for incoming mail which just acts as the relay to the internal mail server. That way spammers can't login to send mail out. That's another question I had, how do I configure sendmail to only send email out/in?
Anyhow, so I have to make do with 1 mail server for now. So I decided to add a few rules on iptables. I grabbed the IP range that gmail uses when I receive mail from then and added it to my iptables with the following command.
[Code]....
I want to restrict to send mail for particular allowed users of UNIX user. How can I achieve that? Which file I need to configure to allow users to send mail?
View 12 Replies View RelatedLet me start off by saying I am experienced with computers, though my knowledge of Linux and networking is limited. I've just recently started setting up a Ubuntu 10.04 server to be a SMTP server. I've followed this guide by the letter: [URL] What I've attempted, to test the server, is the following:
telnet localhost 25
ehlo localhost
(this returns all the desired information) I then do a MAIL FROM my domain which is accepted, and try to do a RCPT TO an external mail server (gmail) to test sending an email. I am then told 'Relay Access Denied'. I'm sure that there's something fundamental that I'm either not understanding or not doing correctly. I simply want an SMTP server that can send to other domains. What do I need to do?
I'm trying to send mail to other users on the same host, but they don't arrive.I've tried using mail and alpine. Both programs apparently work fine, in that they behave as expected and apparently send the email.But when logging in as the recipient, there is no mail in /var/spool/mail, and nothing in alpine INBOX
View 3 Replies View RelatedI want to configure a single mail server to send and receive mail from multiple sub domains of my domain. I've already installed Postfix/Dovecot and it is perfectly working for mydomain.com. And also installed roundcube for Web Mail. Can I further customize this setup to process mail to sub domains? ex- someone@subdomain1.mydomain.com, someone@subdomain2.mydomain.com, someone2@subdomain1.mydomain.com (someone@subdomain1.mydomain.com and someone@subdomain2.mydomain.com are 2 separate users. they should be able to log on to web interface separately)
Currently i use system account names as email user names. (ex - systemusername@mydomain.com). The only MX record in my domain DNS pointed to current server (mailhost.mydomain.com). I read about postfix virtual domains. but couldnt figure out how to use it to achive my target. I do not need configuration details. Just explain me the way to do it. I can do the rest my self.
I want to know is it possible in Sendmail to restrict some users from sending / receiving mail to / from outside world i.e. they should be able to send and receive mails only from local domain.
View 4 Replies View RelatedI have been able to use the mail program on my old Ubuntu instasll which I found quite handy. However, it isn't functioning "out of the box" like I expected. I've tried to configure it as mail was in Ubuntu to no avail.
View 4 Replies View RelatedI want to write a shell script, so that at 9AM every morning a general will be sent automatically to my network users E-Mail ID. My users are as follows: akhtaruzzaman@a[URL], ariful.[URL] etc.
Below is my little effort:
# !/bin/bash
userlist=`cut -f 1 -d : /etc/passwd`
mail -s "mailbackup" << END
keep mailbackup in another drive daily for security purpose
I'm in the process of starting a migration from an old postfix server to nice shiney new exim server however there are a few things i'm really not clear on and i'm hoping that some one here could point me in the correct direction. Okay the postfix server at the moment does the follwoing ( i'll try and keep this simple ):
* accepts incoming mail for users on multiple domains and puts the mail in the users mailbox ( external -> internal )
*accepts mail from users on multiple domains to pass on to the outside world ( internal -> external )
Obviously the POP and Imap functions are handled by other daemons.. I'd like to replicate this sort of setup on the new exim box, however the guides i can find only help with configuring the exim system for incoming mails ( external -> internal ) for multiple domains and i cant seem to find a guide that would indicate how to do both ( internal -> external and external -> internal ) on one box. I'm guessing i may have to do some sort of auth to get exim to accept and then handle the internal -> external side of things?
i am trying to set up a mail server that will support users in a LAN in my school. I am using postfix on a Mandrakelinux distro.
I can send mail when I am root to the other user on my (same) machine both when in command line (mail command) and on Graphical mail client (Kmail ) but the user (sam) cannot send mail to the root account on either interfaces.
I followed the postfix configuration settings on John_Wiley_-_Redhat_Linux_Networking_and_System_Administration_3rd_Edition.
We are using postfix for relaying our internal system generated mail to other domain through google apps. All client servers able to send mail through the postfix server, only user of local postfix server(root, etc) unable to send mail with command like mutt, mail.My detail configuration given below:
Code:
postconf -n
output
Code:
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
[code]....
How to restrict some uses to send mail to outside domains except local in sendmail.I am using ( CentOS5 + Sendmail )
View 2 Replies View RelatedTwo exchange servers internally. One is setup for example.com (192.168.1.10) and the other is setup for example2.com (192.168.1.20) Both are behind a single public IP.
I want to use postfix to sit in front of the two exchange servers. Postfix will accept mail for both domains and relay to the appropriate server. I have postfix installed with only defaults at this point.
I have got a nagios server running on my network, The configuration seems to be okay but each time there is a service alert notification, and an e-mail is sent to the contact group, Nagios continuously sends e-mail over and over again. Do anyone know of a way to set Nagios directives to only send one e-mail per alert without it flooding mail boxes.
View 3 Replies View RelatedI had configured sendmail on linux 5.2, Iam using public ip and my domain is registered[linuxforfreshers.info]. I am facing a issue that when I mail with the user sumit@linuxforfreshers.info then I am able to do it. But if somebody tries to send mail to the same user then it bounce backs. I had made the entry of domain in /etc/mail/local-host-name and also I put ok in /etc/mail/access.The mails are working properly with in LAN. But not able to work on WAN only I can send mail but not able to recieve mail.What else I need to do.
View 6 Replies View RelatedHow to configure a Debian mail server as a user send a mail with attachment maximum wight is 5 Mb.
View 3 Replies View RelatedI have configured fetchmail, sendmail/postfix and mutt to act as a relay to receive mail. I can receive mail fine but I cannot send mail. Its working fine on my one box but on the one acting as a nat I am having issues. This is my mail log from the nat box.
Feb 25 03:42:25 TrunkmonkeyNat sendmail[4382]: p1P8gPfd004382: from=root, size=52, class=0, nrcpts=1, msgid=<201102250842.p1P8gPfd004382@localhost.localdomain>, relay=root@localhost
Feb 25 03:42:25 TrunkmonkeyNat sendmail[4383]: p1P8gPgn004383: from=<root@localhost.localdomain>, size=353, class=0, nrcpts=1, msgid=<201102250842.p1P8gPfd004382@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
[Code]....
I've set up a mail server using Postfix + dovecot. It works just fine sending email to users in my domain. However, I can't send email to external domains (like gmail, yahoo, etc) different than mine. I've tried sending from a remote connection using Evolution and I get the following message on mail.log
Jan 8 10:45:20 mail postfix/smtpd[14911]: connect from unknown[]
Jan 8 10:45:21 mail postfix/smtpd[14911]: NOQUEUE: reject: RCPT from unknown[]: 550 5.1.1 <lobomacz@gmail.com>: Recipient address rejected: User unknown in local recipient table; from=<user@mydomain.com> to=<lobomacz@gmail.com> proto=ESMTP helo=<[10.24.4.230]>
[Code].....
When I use sendmail (or, most commonly, a PHP or Perl script uses it) to send to any other domain except my own, it works great. When I use it to send to my own domain, however, it's trying to deliver it to localhost. Problem is, all our mail is handled by an Exchange server on a different machine, so I really don't want If I run sendmail manually for a test message to myself, here's how it comes up after the message is closed out:
Code:
echo "Subject: test" | /usr/sbin/sendmail -v me@domain.com
354 Enter mail, end with "." on a line by itself
>>> .
050 <me@domain.com>... Connecting to local...
[code]...
The message then gets dropped into my box at /var/mail/xxxx, but that's really not helpful to me -- I need to to connect to that other machine to deliver the mail there. This machine isn't used as a mail server at all. Also, if it's trying to send to a username that doesn't have an account on this server (we have many), it just fails entirely with "user unknown" (that makes sense, as there are only a couple of user accounts on the web server). how to get sendmail to connect to our mail server instead of "local"?
I have two virtual hosts that I want to be able to send through one router. I have two seperate dynamic hostnames on dyndns.
Apparently my router allows me to enter two seperate hostnames locally as well: DynDNS Host and Domain Name
Code:
How do I tell the router which is which? Currently I see the same site with both URLs
Do I have to set one vhost to do some 'funky' stuff (black hole in my head when it comes to static routes or BIND? ). And then set the other vhost to host both sites?
I'm running CentOS and an apache webserver. I want to demo a web site 'externally' from two different sub-domains.
I've looked high and low but most examples don't seem to be simply trying to put two different web-sites up to two Dynamic DNS Hosts.
It must be possible, all the pieces are there. I'm just missing the link!
I m not able to configure sntp server at my linux distribution.
Here are the details. Defined the mail server here.
Code:
/etc/mail/sendmail.mc
dnl define(`SMART_HOST', `XXX.XX.XX.XXX')dnl
ran this command.
[Code]...
I've set up a fully functional e-mail server and can send and receive e-mails to and from an array of virtual domains without a problem. The only hiccup I have is that only root is able to send e-mails via mutt. I have not stipulated a sendmail line in the mutt configuration so it's sending e-mail with default configuration. How can I get it so that all users on the server can send outgoing e-mails via mutt?
Update: Solved this by following this http://inmyplace.info/2008/05/07/pos...ission-denied/
I use gmail for all of my emailing needs but stumbled upon linux counter at counter.li.org. Now I registered on the site and downloaded the machine-update script from the site. So I ran it and it collected the required data. But when I run ./machine-update -m as they have told, I guess no mail gets sent as I have to configure the mail program. How do I configure it so that it sends mail from my gmail address using stmp?
View 1 Replies View Relatedso I'm really new to using Linux, and I searched the forums, but most people seem to have trouble sending mail, not receiving it. When I send mail from the CLI, it gets delivered fine (from travis@travishoward.net) But when I try to reply or mail to the server, I get this message back:
Code:
----- The following addresses had permanent fatal errors ----- <travis@travishoward.net>
(reason: 554 5.7.1 <travis@travishoward.net>: Relay access denied)
[code]...
Am trying to configure the default sendmail program to send mail from command line but failed. Here are the steps I did while following [URL]
cd /etc/mail
mkdir auth
chmod 700 auth
cd authCreate a file called client-info with the following:
AuthInfo:smtp.spamarrest.com "U:<spamarrest.com's login>" "I:<spamarrest.com's login>" "P:<spamarrest.com's password>"makemap hash client-info < client-info
[Code]....
I want to change all outgoing email from my Ubuntu server running postfix to change (masquerade) the username. eg. james@example.com will appear as 'From' 'admin@example.com'. I already know how to masquerade domains, but not users.
View 3 Replies View RelatedI use Evolution mail and use 2 PCs When I send mail it saves it to my current PC but not to the other PC so instead i want it to save the sent to the email server i'm using.
View 3 Replies View RelatedI have set up postfix and dovecot as per the Ubuntu anual and appear to have a functioning mail server.Using the sendmail command I can send mail and I receive mail in ~/Maildir. Using Thunderbird I can read any mails received but I can't send any mail from Thunderbird. I have tried with both STARTTLS and SSL/TLS and whilst I get the prompt for a password I keep getting the message my password for my server is wrong.I have ports 25, 465, 587 and 993. Is that all the right ports?When I ping my domain name it resolves to my router name whereas I believe it should resolve to my IP. Could there be a problem with my host file? I've had a play but to no avail.Here's the error in mail.log.
Code:
westwood@westwood-desktop:/etc$ tailf /var/log/mail.log
Jun 1 19:00:33 westwood-desktop postfix/smtpd[2376]: warning: localhost.localdomain[127.0.0.1]: SASL LOGIN
[code]....
this is my code at the moment
PHP Code: <?php
if (isset($_REQUEST['email'])) && $_REQUEST['email']!='0'{
$to = "chrisathisemail";
[code]....