You are not logged in.

#1 2014-03-31 20:46:26

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

[SOLVED]mail command : "No mail for user" even if there is

I'm currently working on a postfix installation.
I am sending mail from my gmail account to my local user.
The mail is correctly delivered, and i can see it in /var/mail/user

[user@GlowArch ~]$ cat /var/mail/user
From name@gmail.com  Mon Mar 31 22:41:04 2014
Return-Path: <name@gmail.com>
X-Original-To: user@domain.hd.free.fr
Delivered-To: user@domain.hd.free.fr
Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170])
        by domain.hd.free.fr (Postfix) with ESMTP id 4B65CFF24B
        for <user@domain.hd.free.fr>; Mon, 31 Mar 2014 22:41:04 +0200 (CEST)
Received: by mail-vc0-f170.google.com with SMTP id hu19so8868643vcb.15
        for <user@domain.hd.free.fr>; Mon, 31 Mar 2014 13:42:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=2aJXKuowlVnliNpNRwqGspWOBlGQjqU7MrADGAvEFIA=;
        b=IsVCo+G58GQC7d3mNjQQcjOHqk8DME2sVTIJY+BZMIH6GY3aEm5QE4CwRPutIHDjL5
         0y54TffeyGWSShPBFss8MvJ+9M82w28IzTDRv8onkvTefV7+UlA1umVQvTDi/5n9TJwh
         TW4EyPOBWR/KZH9LT1QCCjotM7MghFIAzMYLFmxng+dkEPMzfZ4m4ioQMEGQ+Hz4pswt
         pJGVTAJP4lw9/c2BbynxO3coI1WOE2fDIQXJJWlTak06uLf432bLcNeW+p09DtmxeX48
         84i9POQUWTUbGI30iYYLQvVPyqS7DXRcdx78aaUI5T3K2ZHLAymymVbVVnLH2Fs6/HOq
         nkwQ==
MIME-Version: 1.0
X-Received: by 10.58.57.67 with SMTP id g3mr24682695veq.3.1396298564456; Mon,
 31 Mar 2014 13:42:44 -0700 (PDT)
Received: by 10.52.78.98 with HTTP; Mon, 31 Mar 2014 13:42:44 -0700 (PDT)
Date: Mon, 31 Mar 2014 22:42:44 +0200
Message-ID: <CAH9XmHuyoKES1yfvKsEY2WZ-gHkiJD3MXOty+ZBn9VXs337Vkw@mail.gmail.com>
Subject: Test
From: John Smith <name@gmail.com>
To: user@domain.hd.free.fr
Content-Type: multipart/alternative; boundary=001a1136b2b2ef586c04f5ed177c

--001a1136b2b2ef586c04f5ed177c
Content-Type: text/plain; charset=ISO-8859-1

Test

--001a1136b2b2ef586c04f5ed177c
Content-Type: text/html; charset=ISO-8859-1

<div dir="ltr">Test<br></div>

--001a1136b2b2ef586c04f5ed177c--

But if i try to read using mail command, there is nothing :

$ mail
No mail for user
$sudo mail
No mail for root

Any idea why ?

Last edited by GloW_on_dub (2014-04-01 08:45:46)

Offline

#2 2014-04-01 08:45:26

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [SOLVED]mail command : "No mail for user" even if there is

Somehow i had wrongly configured MAIL variable in my bashrc and forgot about it.

Just removed this and it's working.

Offline

Board footer

Powered by FluxBB