Debian Configuration :: Smdadm Sends No Mail While Booting

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


ADVERTISEMENT

Ubuntu Servers :: Postfix Relay - Exchange Sends The Mail Instead Giving Recipient Mail A Valid Reverse DNS Lookup

Jan 12, 2011

The scenario: We have an external server that runs HTTP/DB servers for out shop system. Then, there's our local, in-house infrastructure that runs a.. yeah... Exchange 2010. The shop system on the external server needs to send mails to customers (order confirmations, invoices, etc.). seing as sending them directly through the local MTA (Postfix) would cause mail delivery problems because of reverse DNS issues, i've set the Postfix MTA to act as a satellite to our in-house Exchange Server, so the Exchange sends the mail instead, giving recipient mail servers a valid reverse DNS lookup.

Now, mails sent by the (proprietary, uneditable) shop system are relayed correctly and sent to the target e-mail address. My problem is: Mails not sent by the shop system, but by our own PHP scripts which run on that same external servers, are NOT relayed properly. So the Exchange is fine with the mails sent by the shop system, but not the mails sent by our scripts. This is what i get in the mail.log: The successfully relayed mail sent by the shop system:

[Code]....

View 2 Replies View Related

General :: Can Attachment Sends Through Mail Command

Nov 3, 2010

how can attachment sends through mail command in linux with mail command either with mail -s or -v option also please confirm how to download the attachments from it . and how one should knows with mail command that attachment is present with the particular mail

View 4 Replies View Related

Ubuntu :: Thunderbird Sends Mail Only When Started By Root?

Dec 23, 2010

I have 2 email accounts set up in Thunderbird - one is gmail and the other was given me by our server admins few years ago. Everything works fine on windows but when I try to send something from the second account (not gmail) in ubuntu it says that password is incorrect. Ive double checked all settings and seems like everything set correct. Now the most interesting part: when I set up this account as root (gksu thunderbird and then do same as I did under my account) everything works perfect.

I found only one thread at this forum with same issue and sure it's not solved [URL]..

View 7 Replies View Related

Debian Configuration :: Exim Doesn't Deliver Local Mail; Files In /var/mail Empty?

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

Server :: Postfix Sends Mail To SPAM In Gemail (CentOS)?

Apr 16, 2011

I'm new here and I'm sure this question has been thrown around a lot but I just couldn't find a solution. I have a networking website I've setup and we need to send notification mails to our members depending on activity related to their profiles(messages, comments etc).We are hosting the site on Centos5.6 with VirtualMin and are using Postfix as our MTA. We also use google apps for email on the site. Heres the problem, the mails go through for some gmail users but more often than not, they end up in gmail,hotmail and yahoo spam.We've setup the appropriate SPF codes on the server, DKIM and rDNS works fine.v=spf1 ip4:xx.xx.xx.xx a mx include:_spf.google.com ~all Below is a sample email that goes directly into gmail spam. I've replaced the actual values with dummy text (Ip, Domain etc)

Delivered-To: my.email@gmail.com
Received: by 10.143.165.5 with SMTP id s5cs223598wfo;
Fri, 15 Apr 2011 08:38:22 -0700 (PDT)

[code]...

View 1 Replies View Related

Slackware :: Crontab - Fetchmail Sends Output To Mail Spool?

Jan 6, 2010

I'm new to mail via the CLI, so bear with me. I have this line in my crontab:

Code:
*/5 * * * * fetchmail
Which does check my mail every 5 minutes fine. But I get the command-line output mailed to

[code]...

View 3 Replies View Related

Ubuntu Servers :: Postfix Correctly Sends Mail Externally, Won't Receive It?

Oct 29, 2010

Alright guys, I've looked over every thread regarding this issue on this forum, and many others; yet I cannot find out why my mail is being bounced without error from my external gmail account.From what I've seen, you guys need to start off by seeing my postconf -n

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases

[code]...

View 9 Replies View Related

Software :: Postfix Internet Mail Server Sends Does Not Send Message In Html?

Feb 3, 2010

i have a website, there is a button that u click fill out a form and sends u a link to download a trial version of our software, the message gets sent with out html.. i copied a sample below (edited out some personal info)

Code:
Content-type: text/html; charset=iso-8859-1
From: ******.com>

[code]...

View 10 Replies View Related

Debian Configuration :: Fstab Configuration And Timeout - Automatically Continues Booting Even If The Hard Drives Are Not Attached?

Aug 3, 2011

I have a PC104 running debian. I have 3 hard drives (in addition to the one booting) mounted in fstab by UUID. I use the options defaults,error=remount-ro. However, this means that when I boot with the hard drives not attached, I have to press Ctrl-D to bypass when the boot discovers the drives are missing. Is there a timeout commandoption I can add to fstab so that it automatically continues booting even if the hard drives are not attached? I could not find anything on a timeout command. (I tried adding timeout=1000 but no-random guess)

View 5 Replies View Related

Ubuntu Servers :: Exim4 Sends Mail Correctly, But Wrong "from" Address?

Apr 5, 2010

I have a ubuntu server 9.10 installed with exim4 as MTA. I configured a mail address on it (let's say me@example.com). Before i had it working i had a other email configured (let's say me_2@example.com). At the time i had this one it didn't work i removed exim4.

Now i can successfully send mails with it by the configured me@example.com. I also configured the password for this, but when i receive the mail the old configured mail is presented as "from" (so from: me_2@example.com).

Anyone knows how this can be changed so it says the mail is from me@example.com? The mail is not an alias, and in a mail client they work separately.

View 4 Replies View Related

Debian Configuration :: Booting From ISO On USB

Feb 17, 2014

Want to boot from ISO on usb with grub. Both the netinst and hd-media netinst initrds have no findiso/iso-scan/fromiso option that allows me to locate the iso file in question. Is there a boot parameter that does it? Do I need to download a new initrd version? Is there any debian build AT ALL that allows mounting iso from usb?

View 7 Replies View Related

Debian Configuration :: Setting Up A Mail Server?

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

Debian Configuration :: Install A Mail Server

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

General :: Debian & Exim4 Configuration Php Mail

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

Debian Configuration :: Booting Often Only After Third Restart?

Aug 17, 2011

My system is a three days old Linux version 2.6.32-5-amd64 (Debian 2.6.32-35) with an Intel(R) Core(TM) i7 CPU 60 @ 2.80GHz. It does start, goes through the grub and then spits out strange messages and just freezes before the KDE can be started. I have to restart again, until it really boots everything. This is happening in a random pattern.

I activated bootlog, but as far as I can see, the log only tracks, if the system is really booting. So I also have the dmesg copied into pastebin. These are the only two logs I know, now.

The code of the boot log goes here-
Wed Aug 17 10:24:19 2011: Setting parameters of disc: (none).
Wed Aug 17 10:24:19 2011: Setting preliminary keymap...done.
Wed Aug 17 10:24:19 2011: Activating swap...done.

[Code].....

View 9 Replies View Related

Debian Configuration :: Optimal Setup For A Mail Server?

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

Debian Configuration :: Popcon Mail Notification Fails?

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

Debian Configuration :: Getting Lot Of Mail Delivery Failed - Exim 4.72

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

Debian Configuration :: Desktop Not Booting To Gnome GUI

Apr 23, 2016

I use the SMXI script to install my graphics drivers (nvidia). It hasn't been booting to desktop for a while though. If I just run a

Code: Select allservice gdm3 start

the desktop starts though. Here's my xorg file.

Code: Select allSection "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"

[code]....

I've also tried doing a Xorg -configure to no success. I've also reinstalled the driver many times.

View 1 Replies View Related

Debian Configuration :: Booting Into A Command Line With No X

Jun 7, 2011

I wanted to be able to have a boot option to just use a command line with no X running at all. What I did was remove the gdm3 link in rc5.d . Then in /boot/grub/grug.cfg I made a new menuentry that is exactly the same as the default but I changed this line:

linux /boot/vmlinuz-2.6.32-5-686 root=UUID=3e926e70-cb92-4847-997c-37aabda532ff ro quiet to this line: linux /boot/vmlinuz-2.6.32-5-686 root=UUID=3e926e70-cb92-4847-997c-37aabda532ff ro 5

This worked. It gave me a command line interface with no X running.

My question is is this the recommended way in Debian? If not what is?

I have been using Linux for a very long time but I used mostly Slackware. I tried Redhat for awhile but really hated bluecruve, shows how long I have been using Linux. I have played with other distros but I always went back to Slack. But I really dislike KDE4 so Slack is no longer an option. KDE4 reminds me of a 12 year old girl that got a big box of makeup and had to use every bit of it. I now am using Debian on my laptop. And as aside I gave my 16 year old daughter a laptop for her birthday. She used the included version of windows 7 for awhile but then asked me what would be a good Linux distro for her. I showed her distrowatch and told her to look at the top distros. She then asked me to help her put on Debian. She loves it. She is a very good musician and song righter, She actually gets paid for doing that at 16, and really likes the programs in Linux to work with sound files. She also does MIDI stuff with our Yamaha Clavinova.

Now we are trying to do things the Debian way and it is a little different then other distros. So did I do the command line thing they way it's recommended in Debian. I have looked on line but all I could find was working in a shell and that is not what I was looking for.

View 2 Replies View Related

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 View Related

Debian Configuration :: Postfix To Block Fake Mail From Own Email

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

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.

View 14 Replies View Related

Debian Configuration :: Can't Send Email From Command Line Using Mail

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

Debian Configuration :: Anti-spam Proxy For Mail On Server?

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

Debian Configuration :: Adding Router For Mail Service Function?

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

Debian Configuration :: Computer Booting To Wrong Grub

Jun 25, 2015

I recently installed another Linux distro, Kali Linux, alongside my Debian 8 and discovered to my chagrin that my computer boots to Kali's grub rather than to the Debian grub. I had spent some time customizing Debian's grub and would hate to see that effort go to waste. Is there a way I can get my computer to boot to Debian's grub instead? I tried deleting Kali's boot partition with gparted but that did not seem to do anything.

View 14 Replies View Related

Debian Configuration :: Send Mail From System Commandline As Root User?

Jul 26, 2011

I tried to send mail from my debian system commandline as root user But i did not get the mail in the destination email inbox No errors was shown

View 1 Replies View Related

Debian Configuration :: Console Dims On Booting And Stays Dark

Oct 25, 2015

Since moving my debian server over to a Gigabyte H97N-WIFI motherboard the console dims on booting and generally stays dark. Strangely the screen the brightens up if I go to an emergency shell, but if the boot runs successfully I don't see the resulting login prompts. Also, during the boot process the messages to the console are too dark to see.

I've tried the i915.invert_brightness=1 fix mentioned here [URL].... but that seems to have no effect. I'm assuming that this has something to do with moving to intel graphics as my previous hardware had a radeon graphics card and didn't display this problem.

View 4 Replies View Related







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