mutt, cronjob e mail root

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Scrivi risposta
Avatar utente
frank2
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1047
Iscrizione: domenica 18 giugno 2006, 17:20
Località: Puglia - Alto Salento

mutt, cronjob e mail root

Messaggio da frank2 »

Dopo aver configurato mutt su un server con ubuntu-server 12.04LTS ricevo questi errori nella cartella di posta in arrivo. Ciò capita ad ogni comando cronjob.
Sembra che Cron, oltre ad inviare le e-mail prestabilite che funzionano correttamente, vuole inviare un'email a se stesso o meglio all'admin che nel mio caso è 'franco'.
Sul server c'è un cronjob ogni ora e ottengo un carico enorme di e-mail di questo tipo:

Codice: Seleziona tutto

Delivery to the following recipient failed permanently:

     franco@gmail.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient 

domain gmail.com by gmail-smtp-in.l.google.com. [2a00:1450:400c:c07::1b].

The error that the other server returned was:
552-5.2.2 The email account that you tried to reach is over quota. Please direct
552-5.2.2 the recipient to
552 5.2.2 http://support.google.com/mail/bin/answer.py?answer=6558 i6si9110542wiv.51 - 

gsmtp
Seguendo varie guide, la configurazione di mutt è la seguente:

Codice: Seleziona tutto

franco@ServerTest:~$ sudo nano /etc/ssmtp/ssmtp.conf

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
#root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=ServerTest

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES

root=mia-mail@gmail.com
mailhub=smtp.gmail.com:587
UseTLS=YES
UseSTARTTLS=YES
rewriteDomain=gmail.com
hostname=ServerTest
AuthUser=mia-mail@gmail.com
AuthPass=mia-password

Codice: Seleziona tutto

franco@ServerTest:~$ sudo nano /etc/ssmtp/revaliases

# sSMTP aliases
#
# Format:       local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.

user_mail:mia-mail@gmail.com:smtp.gmail.com:587
root:mia-mail@gmail.com:smtp.gmail.com:587

Codice: Seleziona tutto

franco@ServerTest:~$ nano ~/.muttrc

set imap_user = "mia-mail@gmail.com"
set imap_pass = "mia-password"
set from = "mia-mail@gmail.com"
set realname = "PubblicaOrdinanze"
set sendmail = "/usr/sbin/ssmtp -f PubblicaOrdinanze -au mia-mail@gmail.c$
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed="+[Gmail]/Drafts"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set sort = 'threads'
set sort_aux = 'last-date-received'
set imap_check_subscribed
set move = no
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
Ringrazio anticipatamente per le risposte che mi vorrete dare.
Saluti, Franco
Finché abbiamo dei ricordi, il passato dura.
Finché abbiamo delle speranze, il futuro ci attende.
Finché abbiamo degli amici, il presente vale la pena di essere vissuto.
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti