Debian Configuration :: Sieve Mail Filter For Domain Isn't Working
Sep 18, 2015
The first filter does not work, the second does...why?
Code: Select allelsif allof (
body :contains ["some text", "Some Text"],
address :domain :is "From" "amazon.de"
)
{
redirect "someemail@gmx.net";
}
elsif allof (
body :contains ["some text", "Some Text"],
address :domain :is "From" "yellowstone.bohlsen.lan"
)
{
redirect "someemail@gmx.net";
}
I even saved the amazon.de email from thunderbird as .eml and used it as a testmail to check the second filter
Code: Select allcat /tmp/amazon-main | mail mylocalusername@yellowstone.bohlsen.lan
that worked without problems.
the amazon email address that is sending me mails is:
Code: Select allbestellbestaetigung@amazon.de
#hostname -f
yellowstone.bohlsen.lan
View 2 Replies
ADVERTISEMENT
Aug 11, 2010
I'm trying to set up an mail filter for our domain. At the moment we're using ClearOS as the filter, works OK but I still get something through and the blacklist and whitelist doesn't seem to work. I was hoping to set up a mail filter on my own, using Spamassassin and/or something else. It seems I have to buy subscription at ClearOS to make it update better or something. I might just do that, it's just tempting to find a way to do it on "my own". I tried to follow these instructions but I don't seem to go anywhere... ...I began with setting up the base server as it is shown there. I've setup quite a few Linux servers, mainly as firewall/gateway kind of things but also some DNS servers, web servers and so on.
I have one mail server and the mail filter is supposed to be on the outside to filter mail before it hits the mail server.
View 3 Replies
View Related
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
Aug 16, 2015
Delivery via docevot lda works for the virtual users.
Sending a mail that should be redirected to a folder instead of going to the INBOX does not work
Code: Select allecho "lala" | mail -s beispiel julius@myvirtualdomain
#/home/vmail/julius@myvirtualdomain/.dovecot.sieve
Code: Select all
require "fileinto";
if header :contains "subject" ["beispiel"] {
fileinto "beispielordner";
} else {
# The rest goes into INBOX
# default is "implicit keep", we do it explicitly here
keep;
}
I can see no errors in dovecot.log, -info.log, -debug.log but also no sieve messages
Code:
Select all
#/etc/dovecot/conf.d/15-lda.conf
protocol lda {
postmaster_address = julius@localhost
mail_plugins = $mail_plugins sieve
[Code] .....
View 1 Replies
View Related
Feb 22, 2011
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.
View 2 Replies
View Related
Jan 28, 2010
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?
View 14 Replies
View Related
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
Feb 18, 2010
Can Debian act as a Windows Domain Controller? I'm just curious because my boss recently tossed out some old servers and I grabbed them. They're good machines but I can't afford to pay $1000 for Server 2003 R2 just to setup a domain at my place and run Endpoint Protection and such. I've never used a domain setup in Linux before so I thought I'd ask and possibly try to, if Debian/Linux is capable of such a thing.
View 6 Replies
View Related
Oct 13, 2010
I'm having problems when trying to view my web site from inside my firewall and router. The web server works fine and will resolve from IP address on the local network and port forwarding works for external connections. The problem stems from when I orignally setup the server; I left the domain name field blank when going through the installation process.
I've had a look at the man pages and had a search on Google but cannot find an answer that works. I've changed a few things in '/etc/hosts' and '/etc/networks' but when I make changes they have no effect on the problem. My web site is on a no-ip domain which is [URL]..
View 6 Replies
View Related
Mar 10, 2011
Backround:
I'll have 2 routers:
- ADSL-router (D-link DSL-2640U)
+ NAT on (needed as one static IP from ISP)
+ Server's IP as 192.168.X.xxx
+ router firewall port-forwards set for needed ports (21,22, 80 etc) to 192.168.0.xxx - 2nd LAN-router
[Code]....
Is there any setting/file on Debian-user-machine, where I could fix that abc.mydomainXYZ.com/defg is always in something to do with 192.168.X.xxx
View 4 Replies
View Related
Sep 30, 2010
i have several sites hosted on one machine (Apache 2.2 on Debian). They are configured at /etc/apache2/sites-available/ with this configuration (part of it):
RewriteMap lowercase int:tolower
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
RewriteRule ^(([^./]+.)?site1.com)/(.*) /www/site1.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site2.com)/(.*) /www/site2.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site3.com)/(.*) /www/site3.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site4.com)/(.*) /www/site4.com/www/root/$3 [L]
[Code]...
View 1 Replies
View Related
Sep 3, 2015
I'm trying to set up a *simple* MTA in my local network. The only thing it should be able to do is send system / daemon mails to admin@mylocaldomain. but at the moment I'm pretty much overwhelmed by everything i *should* know in order to set up this MTA
my infrastructure:
- servers:
* test01.mylocaldomain --> should send mails (with exim) to admin@mylocaldomain
* dns01.mylocaldomain --> dns-server
* mail.mylocaldomain --> mail-server (postfix / iredmail package)
I configured exim to be in "internet"-mode. now i have a variety of errors I can choose from (and a variety of solutions that i don't like ).. my test is always an email from test01.mylocaldomain:
echo "Hello World" | mail -s Testmail admin@mylocaldomain
- after running the config, i get the error: admin@mylocaldomain: all relevant MX records point to non-existent hosts --> google says, edit and udpate update-exim4.conf.conf --> dc_relay_domains='mylocaldomain' --> but this exim installation should not be a relay at all. it should only be able to SEND (to this domain), not deliver it. or do i get something wrong?
- after i added dc_relay_domains='mylocaldomain', i get --> SMTP error from remote mail server after RCPT TO:<admin@mylocaldomain>: host mail.mylocaldomain [192.168.x.x]: 550 5.1.1 <root@mylocaldomain>: Sender address rejected: User unknown in virtual mailbox table --> but i don't want to create an account on the mailserver for the SENDER...
- ...so i thought, i'd config exim with the domain "test01.mylocaldomain" (including the server name), so that the sender is clearly from another domain than the mail server handles (e.g. user@test01.mylocaldomain).. but then i get this --> SMTP error from remote mail server after RCPT TO:<admin@mylocaldomain>: host mail.mylocaldomain [192.168.x.x]: 450 4.1.8 <root@test01.mylocaldomain>: Sender address rejected: Domain not found
I really just wanna send mails in my local network.
View 0 Replies
View Related
May 28, 2010
On my computer (running debian lenny), the network is configured this way (this is a minimal example):/etc/resolv.conf:search bar
View 1 Replies
View Related
Jul 17, 2009
Filter access server through the net only to authenticated users from domain controller (Win2k). Server (Centos)(Firewall with 2 nic), which makes access to the net, with only 196MB RAM (PIII500Mhz), so I do not want a solution based on proxy or what resources it uses large I want a solution with a script that runs at login on windows this check series HDD and to communicate with Linux server that's open accessor another simple solutionNow just use only MAC filtering on
View 1 Replies
View Related
Feb 6, 2009
I installed debian etch, it runs and does connect to the internet fine through a linksys router...the linksys router is connected to my cable modem...now..
I just registered for a domain name (ex. mydomainname.org) with Verio....this is where I am stuck.
I installed apache 2, a web server, file server (all seem to work) I need to know what files I need to configure to have my machine actually BE that domain name.
Ex. my linksys DHCP IP addresses, the linksys gets an IP from the cable modem...my yquestion is ONCE I register a domain name with verio...how do I configure my end so it "knows" I am that respective domain name...I think I need to configure the following, but knot sure how to do it: resolv.conf, hosts, and interface?
View 3 Replies
View Related
Feb 8, 2010
I am new comer in this forum and the beginner on freeBsdI have a problem on how to implement the spam filter program on mail server, the problem is i have no idea on how to implement and test the spam filter program on the mail server and where should i put the program? is it in pop3?
View 3 Replies
View Related
Jul 1, 2011
I have two servers relavant here: mail.domain.com (1.1.1.1) - which is the nameserver and the mail server for domain.com. www.domain.com (2.2.2.2) - which is the www subdomain for domain.com domain.com (cname www.domain.com) - an alias for www.
The zone file for domain.com lists mail.domain.com as the MX server for domain.com. 2.2.2.2 is actually being served web pages as a virtual host. It's real hostname is www.anotherdomain.com. Mail for domain.com works pretty well, in general. However, if I attempt to send mail from www.domain.com (or its alias domain.com), I get "mail for domain.com loops back to myself" in the postfix logs. On 2.2.2.2 /etc/postfix/mail.cf has mydestination = www.anotherdomain.com, localhost. How do I tell postfix on 2.2.2.2 that mail for domain.com needs to be delivered to mail.domain.com?
View 1 Replies
View Related
Jan 5, 2011
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?
View 3 Replies
View Related
Jan 12, 2011
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
View 1 Replies
View Related
Aug 27, 2010
Linux [URL] 2.6.26-2-686 #1 SMP Wed Feb 10 08:59:21 UTC 2010 i686 GNU/Linux Currently I have exim4 configured to use my mail server as a relay to send php emails. Though I don�t think I want this setup. My goal is to be able to track emails sent out to make sure that nothing happened and they got bounced back. I need to be able to find the emails that are bounced.
If I configure exim4 to send emails from the current (apache2 / php) server any emails that bounce will end up there, correct? We have clients that are expecting emails and are complaining they do not always get them so something is not 100% configured correctly. I am going to re-run #dpkg-reconfigure exim4-config
View 2 Replies
View Related
Oct 13, 2015
It's hard to understand the whole systemd stuff. Specially in combination with mdadm and sendmail. My goal is to get a mail every boot about the state of the RAID. Also get a mail when someone is wrong with the RAID while my computer is running. How I can reach this target I don't care especially. It just has to be a Debian package and stable
OK, to the story: I made a while ago an dist-upgrade from wheezy to jessie. Before, everything works fine. I boot my computer, the RAID gets checked and a mail was sent to my email-address with the state of my RAID and the disks of it. For this I followed a HowTo from [URL] .... After the upgrade, I dont get a mail anymore.
Here some details.
Actually installed: Debian 8.2 Jessie
Code: Select allsystemctl status mdadm-raid -l
● mdadm-raid.service - LSB: MD array assembly
Loaded: loaded (/etc/init.d/mdadm-raid)
Active: active (exited) since Son 2015-10-11 16:11:34 CEST; 21min ago
Process: 281 ExecStart=/etc/init.d/mdadm-raid start (code=exited, status=0/SUCCESS)
Okt 11 16:11:34 xy-server mdadm-raid[281]: Generating udev events for MD arrays...done.
[Code] ....
When I execute
Code: Select allecho "This is a test e-mail from my server using msmtp" | msmtp -d xyz@gmx.net
or
Code: Select allmdadm --monitor --scan --test --oneshot
Everything works. I get the mails like I need it. In my opinion it's not a problem of the mail configuration. It seems, there is no network when the RAID get's started and the mails want to be send.
What I'm wondering is also, that obviously the
/etc/default/mdadm
is ignored by systemd and only the
/lib/systemd/system/mdmonitor.service is executed. But while booting the RAID get's startet with /etc/init.d/mdadm-raid and this should read the /etc/default/mdadm. Right? Confusing!
Anyway, is there a way, how I can easy change the order (without any side-effects) of the startup for the network and the RAID. I can't figure out, which unit I have to change, that it will work. Or maybe is there another solution? Like I mentioned, it's just have to work with Debian stable packages
There are various units who sounds nice, but wich one is the correct one?
Network:
- network-online.target
- network.target
- system-ifup.slice
- ifup@eth0.service
Disks:
- local-fs.target
- mdadm-raid.service
- mdmonitor.service
- -.mount
And how can I be sure, that every dependency of the network units doesn't depend on a filesystem unit?
View 2 Replies
View Related
Apr 16, 2010
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?
View 2 Replies
View Related
Mar 5, 2011
I would like to use debian's popularity contest utility as I think it's an important tool for the developers and packagers, but it seems to be broken. I received the following notification after a recent full-upgrade from Lenny to Squeeze:
From MAILER-DAEMON Thu Nov 18 19:14:25 2010
Envelope-to: root@mediacenter.local
Delivery-date: Thu, 18 Nov 2010 19:14:25 +0200
X-Failed-Recipients: survey@popcon.debian.org
Auto-Submitted: auto-replied
[Code].....
View 3 Replies
View Related
Jun 15, 2011
I run a mailserver and this is bothering me quite abit. Being going on for about a month now. Running exim4 and dovecot with exim4u. This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
dsghjytyt@yahoo.com
retry time not reached for any host after a long failure period
This is a copy of the message, including all the headers.
Return-path: <andreas@servar.net>
Received: from ip-81-210-201-120.unitymediagroup.de ([81.210.201.120] helo=holly5)
by gwdebian.net with esmtpa (Exim 4.72)
(envelope-from <andreas@servar.net>)
id 1QWpUO-0000yy-ML
for dsghjytyt@yahoo.com; Wed, 15 Jun 2011 14:46:32 +0200
MIME-Version: 1.0
Date: Wed, 15 Jun 2011 14:44:16 +0200
X-Priority: 3 (Normal)
Content-Type: text/plain;
charset="iso-8859-1"
Subject: =?iso-8859-1?Q?lizzie_VIAGRA_=C2=AE_-61%_discount?=
Content-Transfer-Encoding: quoted-printable
From: andreas@servar.net
Reply-To: "RE: Your Recent Job" <Posting>
To: dsghjytyt@yahoo.com
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
Message-ID: <CHILKAT-MID-3b7cf1d5-b3e7-3d78-5c1d-713c0e381cb9@holly5>
X-Antivirus: avast! (VPS 110615-0, 15.06.2011), Outbound message
X-Antivirus-Status: Clean
X-Scanned-By: unscanned primary on gwdebian.net (109.108.198.243); Wed, 15 Jun 2011 14:46:32 +0200
Then alot of random text
I run OSX on my everyday computer so this is not me sending out stuff since the above mail says Microsoft Outlook express has sent it (?) Running a Debian Squeeze server. And I really dont get any other spam due to exim4u setup and spamassasin.
View 14 Replies
View Related
Mar 22, 2016
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?
View 13 Replies
View Related
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.
View 14 Replies
View Related
Mar 17, 2010
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).
View 14 Replies
View Related
Jun 20, 2010
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.
View 1 Replies
View Related
Jun 10, 2011
I'm building a Debian based router, I want to add to this router a mail service function. I don't want mail to be sent outside of the network, what I want is the ability for services to send mail to the Debian server and for me to then pick them up from this server via pop3 into my normal mail application. Given I'm not looking for mail to be sent outside of the network and its strictly for services to log notifications via. What of the various mail applications should I setup? i.e. just looking for SMTP + POP3 internally.
View 5 Replies
View Related
Oct 3, 2010
I was trying to get the Windows one working again. Here's what fdisk -l reads:
[Code]...
I'll change these or do some grub configurations, if anyone knows what ones can work.
View 1 Replies
View Related