Debian Configuration :: Email Encryption - How To Setup Mail Server
Feb 8, 2010
Could anyone point me to some simple articles that explain what email encryption is and how to set up a mail server (e.g. Exim) that can send secure emails? I know nothing about networks, mail servers, encryption, etc., but I have to be an expert on it before I walk into work tomorrow morning.
I would like to discuss setting up a mail server and its implications and alternatives. First, let us see if I have understood this correctly: A mail server consists of many different components. First, a server to listen to any mail inbound for a specific domain (say postfix), and then a POP3/IMAP server (say dovecot). Then, I should somehow configure the rules by which all mail is forwarded to their respective owners. This should be fairly simple by using debians package managers and dselect or whatever program it is that sets up right packages by use cases at the install.
But now lets assume a more complicated environment, where there are multiple users with different domains and needs. First, we need to send mail to ourselves from webapps for instance for backup purposes. So let's say we have a domain called domain.com setup, and we want to send mail to backup@domain.com. Unfortunately, some configuration issue makes the application get confused, because it is trying to send mail to itself, but doesn't quite understand what it should do. How can this problem can be solved?
Second, how could I configure different domains with different rules. For instance, if I want one domain to have a catch-all account, where random email sent to erroneous accounts is captured? Or if I want to create accounts which are not based on actual Debian accounts, but instead just random usernames (say, danny@domain.com, mike@domain.com, support@domain.com etc.)?
Finally, which are the best web-guis for doing such configuration? What if the customer wants to himself add accounts? I cannot require him to edit text files - especially if he can thus break the whole configuration for other customers as well.. postfix-admin is one, but it is quite crude-looking. Is there something which integrates both postfix, apache and dovecot configuration? How about Webmin?
The problem I have is so simple yet difficult for me to resolve. My Postfix MTA allow fake mails from me@example.com to me@example.com. How can I block them?
For example, if I do "telnet smtp.mail.yahoo.it 25", as I write the MAIL FROM command I get the alert "Authentication required". How can I achieve that?
I'm running a desktop-less version of Debian via Sun VirtualBox. The reason I'm doing this is because I don't have enough graphics or RAM power to have a desktop environment running on top of my current desktop; also, I want to learn Linux through the command prompt. I'm running the AMD64 version of Debian; I'm not sure if that's relevant.
My main goal is to be able to email useful files from the virtual Debian to my main computer, so that I can save them for later if I ever decide to do a "real" installation of Debian on this computer. I realize now that there's probably some "easy" way to do this by reading the virtual machine's hard drive, but at this point, my curiosity wants to see this issue resolved. I started off wanting to find a command-line program to send my email with, and one was built-in. The syntax ~$ sudo mail -s "Subject" email@yahoo.com "This is a test email."
C^D Cc:C^D ~$
is what I found. I tried it, and (unsurprisingly), it failed. I then learned that the mail command calls exim4, or something along those lines, so I needed to configure exim4. Soon thereafter, I learned that Yahoo's SMTP wasn't public, but Google's was. So, I found this web page which described how to configure exim4 to allow for email to be sent to a Gmail account. I made one, and followed the page word-for-word.
I sudo-mailled a test email to my Gmail account, and nothing happened. I waited a bit longer, and still, nothing happened. Finally, I started looking around, and found out about the exim4 logs in /var/log/exim4. In my mainlog, I think that it's telling me that Google denied my connection: <date><time><random numbers and letters> == **********.gmail.com R=send_via_gmail t=gmail_smtp defer (111): Connection refused
So, now, I'm just stuck. I don't know what I did wrong, I checked my exim4.conf.template twice for spelling errors, but I don't think I made any. At this point, I can only hope that someone else has had a similar problem, or knows what I'm doing wrong (or haven't done yet).
I would like to set up a mail and instant messaging server running on squeeze.It will be running on a 1ghz celeron (pentium 3 era) with 1gb ram and 10gb hdd (I'm assuming these are high enough specs) It will have less than 10 accounts and probably no webserver (not sure if good idea). I am also unsure of what IM protocols would be best for this. I would prefer to do all this from the command line if possible (so long as it's not too hard) and preferably from a remote machine (so SSH?) I prefer IMAP if possible but pop3 and smtp are also fine. I would also like to be able to connect remotely with encryption (not a big requirement -just a nice feature)
I will be relocating to a permanent residence sometime in the next year or two. I've recently begun thinking about the best way to implement a home-based network. It occurred to me that the most elegant solution might be the use of VM technology to eliminate as much hardware and wiring as possible.My thinking is this: Install a multi-core system and configure it to run several VMs, one each for a firewall, a caching proxy server, a mail server, a web server. Additionally, I would like to run 2-4 VMs as remote (RDP)workstations, using diskless workstations to boot the VMs over powerline ethernet.The latest powerline technology (available later this year) will allow multiple devices on a residential circuit operating at near gigabit speed, just like legacy wired networks.
In theory, the above would allow me to consolidate everything but the disklessworkstations on a single server and eliminate all wired (and wireless) connections except the broadband connection to the Internet and the cabling to the nearest power outlets. It appears technically possible, but I'm not sure about the various virtual connections among VMs. In theory, each VM should be able to communicate with the other as if it was on the same network via the server data bus, but what about setting up firewall zones? Any internal I/O bandwidth bottlenecks? Any other potential "gotchas", caveats, issues? (Other than the obvious requirement of having enough CPU and RAM).Any thoughts or observations welcome, especially if they are from real world experience in a VM environment. BTW--in case you're wondering why I'm posting here, it's because I run Debian on all my workstations/servers (running VirtualBox as a VM for Windows XP on one workstation).
I would like to run a mailing daemon on my system that would receive incoming mail and forwards it to my Gmail account. I have no experience in mail services and forwarding mail at all. where to start reading and/or look for clues?
i need to install a mail server with the following requirements: smtp, imap, web administration interface (users management to be done by a non-specialist) and ... to be easy enough to install/implement on debian (this is one time deal for me ...)
i used until now Xmail, phpxmail and nocc, very easy to install and it was working flawlessly, but unfortunately nocc is a too poor webmail client be cause is based only on pop3 literally the requirement is that on the web[client] mails sent must be saved and from what i see on webmail that only can be done with imap and (this is the big problem) Xmail does not support imap so i cannot install a good webmail client
I was wondering if there was some kind of anti-spam proxy available for debian, that could serve as a layer between my ISP's mailserver and my email client. Something light, as it needs to be installed to a guruplug server with not much storage available. It would be great if I don't need to configure a fully fledged mail server but if it can function on it's own, only filtering spam messages. I already found assp and qpsmtp, but I find these very difficult to setup and assp is like huge.
There is an requirement, intranet people they may not have internet access but they want to send mail to external domain(internet),but in that intranet network one machine can have internet access. Is there any solution for this requirement.
I have a Fedora 10 machine that I want to setup to send email. However I don't want it to be a full blown SMTP setup.What I am looking to achieve is when something sends email from the local machine (e.g. from cron) to an address I want it to use an MTA on the local machine which will then connect to, and authenticate with, my e-mail providers SMTP server this will then take care of actually sending the e-mail.I don't want, or need, to setup a full blown SMTP service (i.e. only the local machine should be able to use it) so sendmail seems a bit over the top for my needs. Nor do I want to mess about with MX records (am I right in thinking this will mean I have to manage all mail for my domain?).
I'm having problems with emails containing HTML content. When Google downloads the email messages via POP3 from my squirrelmail server, the message does not display using HTML. I'm not sure if this is Google's fault or Squirrelmail's fault, but I've never had problems before on other servers running the same script and using squirrelmail. If I login to squirrelmail, I have the option to download the email message as an attachment. The attachment, if opened by my local browser, shows up as HTML content, and it is properly formatted. However, I'm using Google to download my emails and file them under my Gmail account. After Gmail downloads the messages, it shows up like this:
From To admin@domainRemoved.com Date Sat, Jul 30, 2011 at 6:07 PM Subject Pending Registration
<p><b> After registering your client via your server, please visit the following URL to send them confirmation: </b></p>
I really need it to show up properly once Gmail downloads the messages, as it takes a long time to login to Squirrel mail and download each message as an attachment. My PHP Code Headers Look like this: $headers = 'MIME-Version: 1.0' . " "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . " "; $headers .= "From: $uname <$email>";
Someone suggested that I remove the from my script. I did, and now the email shows a from sender as www-data www-data@domain.com. Before, the from field showed up as empty. However, my PHP script is designed to change the sender's information to the clients that contact me. Thus, if customer A contacts me, the email should be from customer A <custa@whatever.com>. However, it's not being changed by the PHP script. It works on every other server but mine. I think my postfix configuration isn't setup properly? What needs to be configured on it?
I'm trying to set up a bind9 server for my home network, I have all my IPs set to 10.0.0.X. I would like the forward and reverse to be simply "machinename", not "machinename.domain.com", as I don't want to type a domain everytime.
In my named.conf zone "net.local" in { type master; file "/etc/bind/net.local.ns"; allow-update { none; };
I cannot get exim4 to actually deliver any "local delivery only; not on a network".But whatever I do in the config, all mail gets frozen with entries in the log file like:"root@empty R=nonlocal: Mailing to remote domains not supported"Maybe the problem is that there is no fqdn for the computer (and will never be). How can I enable local mail delivery?
I have users [URL] unable to send email to [URL]. [URL] user also unable to send email to [URL]. But both email addresses are fine as they can receive email from others or from [URL] and [URL]. I able to telnet mail server 110 and 25, no problem. Version: ESMTP Sendmail 8.12.10
Mail Log:
Feb 23 11:36:35 mail sendmail[16228]: o1N3aZxt016215: to=<xxx1@gas.com>, ctladdr=<xxx@abc.com> (501/501), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=442918, relay=gas.com, dsn=5.1.2, stat=Host unknown (Name server: gas.com: no data known)
I'm trying to setup a NFS4 server (no security, local home network behind FW). It seems that I'm missing something because 'rpcinfo -p' does not list v4 for NFS: petit-pois:/home/eric# rpcinfo -p
The laptop runs Debian Squeeze XFCE installed from the Live iso (uname -a gives 2.6.32-5-686 as the kernel) and has Wicd 1.7.0 for network management and uses the ipw2100 wifi firmware/drivers. It connects fine using WEP encryption at home and to unencrypted connections found in a couple of public areas. I have had one problem with a WEP encrypted connection in a cafe (got through encryption, but could not get an IP address. There are workarounds which I will try next time I have coffee there When changing my router to use WPA2, I get 'bad password' errors. There is quite a literature on 'bad password errors' and Wicd and kernel 2.6.32, however a lot of the pages are contradictory. The Wicd log showed this...
2011/06/07 17:25:59 :: WPA_CLI RESULT IS ASSOCIATING 2011/06/07 17:26:00 :: wpa_supplicant authentication may have failed. 2011/06/07 17:26:00 :: connect result is Failed
[code]...
I'm fine using WEP at home, but I need to connect out and about as well and meet WPA2 connections in some locations
I recently bought a new hard disk for my /home tree. I don't have encrypted home directories currently, but I was wondering if there is an easy way to encrypt my home directory so that it is automatically decrypted when I'm logging in (console/kdm). Basically I would like to manually do same thing as Debian installer would have done.
I am tired of managing local Address Books and Calendars. I use either POP or IMAP email accounts now and want to keep the email accounts I have. What is a good Mail Server I can setup to Let me use a Global Address Book and Shared Calendar System between Outlook 2003 and Evolution, but not create email accounts? In Other words I want a Local Server I can setup that does nothing but manage a Global Address Book and Calendars. I want to keep using POP and IMAP accounts for the email side of things.
I've a Lenovo G50-80T with W8.1. I want to install Debian 8.1 in dualbooting mode. I've done this other times without problems. But this time I want encrypt the Linux partition (not the Windows partition). I'll use dm-crypt to do that. I want to know if this way is secure for protect the data on Linux partition or if I need encrypt the entire drive.
I'm trying to setup RAID 1 on a CentOS 5 server for a zimbra email server.I get a partion schema error. Can I do this?The server is a HP Proliant ML150 G3 server with two 80GB HDD.
I would like to be able to have email sent directly to my computer at home (i.e. run some kind of mail server on it) instead of having to rely on Gmail, Yahoo or someone else. From what I've read it should be possible, but most of the guides out there seem to be oriented to enterprise-class setups, or at the very least a small business, and I think that a lot of that would be overkill for just getting my personal mail. The minimum *I think* is
- register a domain name, with the DNS pointing to my public IP (which is dynamic, so one question I have is whether I would have to use DynDNS or is DNS at any registrar going to be flexible enough to modify if/when my IP changes?)- something about MX records (I'm really unsure here, what exactly are these and where do I set them up? I don't think a free DynDNS account lets one handle this, does someone know which of their account types supports setting this up?)
- Install sendmail and postfix (which seems like a PITA, but much documentation appears to be available)
I am setting up an FC7 box to replace a currently dying server and I'm having an issue with the mail setup. I am using sendmail and dovecot and system users for credentials. I won't include all of their configurations, because that would get long, but I can copy and paste any sections if they are needed.
The problem is all mail is being delivered to the root mailbox in /var/spool/mail/. I setup a laptop on a local network with the server to test things. And just brought up Evolution with one of my test accounts. I was able to authenticate and tried to send a test email to myself. The email went out fine but did not come back in.
I have setup mail server on Ubuntu 9.10 and it's is working fine.I am using Webmin to addministrate my mail server.My Ubuntu server name abcs.I send a test mail from Wedmin for user gom.Why it keep adding InfoNet. What I would like is setup as gom@abcs.com.
what do I need to change in postfix/ dns to send email to one one of the email server hosted by 1and1.
I'm using zenoss to monitor system/ network and devices. I wanted to setup email notification , so I installed postfix. All works fine when I use my private account on yahoo or hotmail. but when I specify email account that is hosted by 1and1 I receive error 421. "
xxxxmyserver postfix/smtp[5399]: B0A5B22A06: to=<1and1emailaddress>, relay=mx00.1and1.co.uk[212.227.15.169]:25, delay=0.8, delays=0.04/0.02/0.62/0.12, dsn=4.0.0, status=deferred (host mx00.1and1.co.uk[212.227.15.169] said: 421 invalid sender domain 'xxxxmyserver' (misconfigured dns?) (in reply to RCPT TO command))
I'm following [URL] to build a mail server running postfix virtual. The server is now running able to send and receive mails. But remote mail client 'Evolution' can't login the server to send/receive mails. # tail /var/log/mail.log
Code: Nov 17 09:00:32 xen05 postfix/smtpd[6601]: warning: xen0.satimis.com[192.168.0.110]: SASL PLAIN authentication failed: authentication failure Nov 17 09:00:48 xen05 postfix/smtpd[6601]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory Nov 17 09:00:48 xen05 last message repeated 3 times Nov 17 09:00:48 xen05 postfix/smtpd[6601]: warning: SASL authentication failure: Password verification failed .....
Still fail: "Login authentication" and "plain authentication" same result.
I happened to know my incoming and outgoing emails are being monitored by my superior. Just wondered, can i check from the mail header to find out all my emails (incoming/outgoing) are automatically being cc to another email account? We're running mail server using postfix.
I am writing an script for sending emails with ssmtp email client in an appropriate form.I want to know how can I check mail server that I want to send mail to it if it exist and ready to receive email or if not log an error.