Re: Mail shows being queued, but not in queue

2019-12-26 Thread @lbutlr
On 26 Dec 2019, at 09:18, LuKreme  wrote:
> postconf-n

Sorry, `postconf -n` I was typing on my iPad and didn’t notice the lack of a 
space.

This is what is in my postconf -n that seems most relevant to your situation:

dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
virtual_transport = lmtp:unix:private/dovecot-lmtp



-- 
IT'S POTATO, NOT POTATOE Bart chalkboard Ep. 7F01



Re: Mail shows being queued, but not in queue

2019-12-26 Thread LuKreme
> On Dec 23, 2019, at 12:24, Mark ADAMS  wrote:
> Here is my config for postfix main.cf:
> 
> less main.cf

The correct command is postconf-n which lets people see the settings that are 
not default without having to wade through everything else.

There is no mention in the configuration you showed of dovecot at all, nor any 
transport maps, lmtp, or anything that would indicate you are using dovecot. It 
appears your mail is being stored as mbox files in /var/spool/mail/


-- 
My main job is trying to come up with new and innovative and effective ways to 
reject even more mail. I'm up to about 97% now.

Re: Mail shows being queued, but not in queue

2019-12-23 Thread Viktor Dukhovni
On Mon, Dec 23, 2019 at 10:37:46PM +, Mark ADAMS wrote:
>
> Okay, sounds like it's not postfix. This narrows it down to dovecot.

No, it narrows it down to a failure to describe what you expected to
happen.  Postfix successfully delivered the mail to a local mbox, but
that's rarely what you want if you expect to read the mail via Dovecot
IMAP.  For that you generally want maildir delivery via the Postfix
virtual(8) delivery agent, or perhaps via LMTP to Dovecot's LDA.

That means that Postfix configuration may be incomplete, messages
are delivered, but not where you need them to be delivered to.

> > Dec 23 15:07:09 shuttle postfix/local[21640]: B03444A4201: 
> > to=,
> >   relay=local, delay=25, delays=25/0.02/0/0.06, dsn=2.0.0, status=sent
> >   (delivered to mailbox)
> 
> The message was successfully delivered to whichever mailbox root is aliased 
> to.
> The mailbox is in $(postconf -xh mail_spool_directory) under whichever user
> root's mail is aliased to.

On Mon, Dec 23, 2019 at 11:44:21PM +0100, Max-Julian Pogner wrote:
>
> According to the logs you posted, the Postfix local mail delivery (and
> not dovecot) is used to deliver the mail to some directory on the system.
> 
> I think that is what Viktor had in mind, when suggesting you look the
> folder returned by the command he posted:

-- 
Viktor.


Re: Mail shows being queued, but not in queue

2019-12-23 Thread Max-Julian Pogner
Hi Mark,

just to rule out any misunderstandings:

According to the logs you posted, the Postfix local mail delivery (and
not dovecot) is used to deliver the mail to some directory on the system.

I think that is what Viktor had in mind, when suggesting you look the
folder returned by the command he posted:

> $(postconf -xh mail_spool_directory)


~~ Max




Re: Mail shows being queued, but not in queue

2019-12-23 Thread Mark ADAMS
Okay, sounds like it's not postfix. This narrows it down to dovecot.

Thank you again.


From: owner-postfix-us...@postfix.org  on 
behalf of Viktor Dukhovni 
Sent: Monday, December 23, 2019 3:24 PM
To: postfix-users@postfix.org 
Subject: Re: Mail shows being queued, but not in queue

On Mon, Dec 23, 2019 at 10:16:06PM +, Mark ADAMS wrote:

> Yeah that sounds like me, but there's nothing showing up in the logs.

I don't call the below "nothing".

> 250 2.0.0 Ok: queued as B03444A4201

> Dec 23 15:07:08 shuttle postfix/cleanup[20775]: B03444A4201: message-id=<>
> Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
> attribute: status

There's no need for verbose logging, it just makes it harder to see the
important bits.  Restart Postfix with no "-v" flags.

> Dec 23 15:07:08 shuttle postfix/qmgr[9692]: B03444A4201: 
> from=, size=199, nrcpt=1 (queue active)
> Dec 23 15:07:09 shuttle postfix/local[21640]: B03444A4201: to=,
>   relay=local, delay=25, delays=25/0.02/0/0.06, dsn=2.0.0, status=sent
>   (delivered to mailbox)
> Dec 23 15:07:09 shuttle postfix/qmgr[9692]: B03444A4201: removed

The message was successfully delivered to whichever mailbox root is aliased to.

> Did I miss one?

The mailbox is in $(postconf -xh mail_spool_directory) under whichever user
root's mail is aliased to.

--
Viktor.


Re: Mail shows being queued, but not in queue

2019-12-23 Thread Viktor Dukhovni
On Mon, Dec 23, 2019 at 10:16:06PM +, Mark ADAMS wrote:

> Yeah that sounds like me, but there's nothing showing up in the logs.

I don't call the below "nothing".

> 250 2.0.0 Ok: queued as B03444A4201

> Dec 23 15:07:08 shuttle postfix/cleanup[20775]: B03444A4201: message-id=<>
> Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
> attribute: status

There's no need for verbose logging, it just makes it harder to see the
important bits.  Restart Postfix with no "-v" flags.

> Dec 23 15:07:08 shuttle postfix/qmgr[9692]: B03444A4201: 
> from=, size=199, nrcpt=1 (queue active)
> Dec 23 15:07:09 shuttle postfix/local[21640]: B03444A4201: to=,
>   relay=local, delay=25, delays=25/0.02/0/0.06, dsn=2.0.0, status=sent
>   (delivered to mailbox)
> Dec 23 15:07:09 shuttle postfix/qmgr[9692]: B03444A4201: removed

The message was successfully delivered to whichever mailbox root is aliased to.

> Did I miss one?

The mailbox is in $(postconf -xh mail_spool_directory) under whichever user
root's mail is aliased to.

-- 
Viktor.


Re: Mail shows being queued, but not in queue

2019-12-23 Thread Mark ADAMS
Thanks for the attention on this.

Yeah that sounds like me, but there's nothing showing up in the logs.
I'll attempt to send a message and paste what shows up in the logs here.

>From the client(exactly the same thing happens if I try to send via telnet on 
>the server itself):

$ telnet shuttle 25
Trying 192.168.1.105...
Connected to shuttle.
Escape character is '^]'.
220 shuttle.local ESMTP Postfix
ehlo shuttle
250-shuttle.local
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
mail from: madams@shuttle none
555 5.5.4 Unsupported option: none
mail from: madams@shuttle
250 2.1.0 Ok
rcpt to: root@shuttle
250 2.1.5 Ok
data
354 End data with .
subject: testing

Testing

.
250 2.0.0 Ok: queued as B03444A4201


>From journalctl on the server:


Dec 23 15:07:08 shuttle postfix/cleanup[20775]: B03444A4201: message-id=<>
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
attribute: status
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute name: status
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute value: 0
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
attribute: reason
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute name: reason
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute value: (end)
Dec 23 15:07:08 shuttle postfix/qmgr[9692]: B03444A4201: from=, 
size=199, nrcpt=1 (queue active)
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
attribute: (list terminator)
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute name: (end)
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: > spike[192.168.1.106]: 250 2.0.0 
Ok: queued as B03444A4201
Dec 23 15:07:09 shuttle postfix/local[21640]: B03444A4201: to=, 
relay=local, delay=25, delays=25/0.02/0/0.06, dsn=2.0.0, status=sent (delivered 
to mailbox)
Dec 23 15:07:09 shuttle postfix/qmgr[9692]: B03444A4201: removed

/var/log/mail/errors.log shows no input from this transaction
/var/log/mail/warnings.log shows no input from that transaction
/var/log/mail/info.log shows only the information I drew from journalctl above:

Dec 23 15:07:08 shuttle postfix/cleanup[20775]: B03444A4201: message-id=<>
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
attribute: status
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute name: status
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute value: 0
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
attribute: reason
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute name: reason
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute value: (end)
Dec 23 15:07:08 shuttle postfix/qmgr[9692]: B03444A4201: from=, 
size=199, nrcpt=1 (queue active)
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: public/cleanup socket: wanted 
attribute: (list terminator)
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: input attribute name: (end)
Dec 23 15:07:08 shuttle postfix/smtpd[20834]: > spike[192.168.1.106]: 250 2.0.0 
Ok: queued as B03444A4201
Dec 23 15:07:09 shuttle postfix/local[21640]: B03444A4201: to=, 
relay=local, delay=25, delays=25/0.02/0/0.06, dsn=2.0.0, status=sent (delivered 
to mailbox)
Dec 23 15:07:09 shuttle postfix/qmgr[9692]: B03444A4201: removed

Did I miss one?




From: owner-postfix-us...@postfix.org  on 
behalf of Viktor Dukhovni 
Sent: Monday, December 23, 2019 1:12 PM
To: postfix-users@postfix.org 
Subject: Re: Mail shows being queued, but not in queue

On Mon, Dec 23, 2019 at 07:40:01PM +, Mark ADAMS wrote:

> I forgot a couple of things:
> Distro: Linux shuttle 5.4.2-desktop-1.mga7 #1 SMP Thu Dec 5 17:40:00 UTC 2019 
> x86_64 x86_64 x86_64 GNU/Linux
> Postfix: postfix-3.4.5-1.mga7
> Dovecot: 2.3.7.2 (3c910f64b)

What you forgot more than anything else is the logs that show
how the message in question was hanled by Postfix.

http://www.postfix.org/DEBUG_README.html#mail

--
Viktor.


Re: Mail shows being queued, but not in queue

2019-12-23 Thread Viktor Dukhovni
On Mon, Dec 23, 2019 at 07:40:01PM +, Mark ADAMS wrote:

> I forgot a couple of things:
> Distro: Linux shuttle 5.4.2-desktop-1.mga7 #1 SMP Thu Dec 5 17:40:00 UTC 2019 
> x86_64 x86_64 x86_64 GNU/Linux
> Postfix: postfix-3.4.5-1.mga7
> Dovecot: 2.3.7.2 (3c910f64b)

What you forgot more than anything else is the logs that show
how the message in question was hanled by Postfix.

http://www.postfix.org/DEBUG_README.html#mail

-- 
Viktor.


Re: Mail shows being queued, but not in queue

2019-12-23 Thread ratatouille
Hello!

Mark ADAMS  schrieb am 23.12.19 um 19:40:01 Uhr:

> I forgot a couple of things:
> Distro: Linux shuttle 5.4.2-desktop-1.mga7 #1 SMP Thu Dec 5 17:40:00 UTC 2019 
> x86_64 x86_64 x86_64 GNU/Linux
> Postfix: postfix-3.4.5-1.mga7
> Dovecot: 2.3.7.2 (3c910f64b)
> 
> I'm looking at dovecot, but not getting any errors there either. I'm looking 
> for a dovecot support mailing list.

I don't drive postfix 3.x but in main.cf I have these settings so that postfix 
talks to dovecot:

mailbox_transport = lmtp:unix:private/dovecot-lmtp
virtual_transport = lmtp:unix:private/dovecot-lmtp

and in dovecot I enabled

service lmtp {
 unix_listener /var/spool/postfix/private/dovecot-lmtp {
   group = postfix
   mode = 0600
   user = postfix
  }
}

HTH

  Andreas


Re: Mail shows being queued, but not in queue

2019-12-23 Thread Mark ADAMS
I forgot a couple of things:
Distro: Linux shuttle 5.4.2-desktop-1.mga7 #1 SMP Thu Dec 5 17:40:00 UTC 2019 
x86_64 x86_64 x86_64 GNU/Linux
Postfix: postfix-3.4.5-1.mga7
Dovecot: 2.3.7.2 (3c910f64b)

I'm looking at dovecot, but not getting any errors there either. I'm looking 
for a dovecot support mailing list.

If this is a dovecot issue and someone can point me in a helpful direction for 
support, I'd appreciate it.

Thanks.

From: owner-postfix-us...@postfix.org  on 
behalf of Mark ADAMS 
Sent: Monday, December 23, 2019 12:23 PM
To: postfix-users@postfix.org 
Subject: Mail shows being queued, but not in queue

I'm trying to rebuild a server after an upgrade. The mail server did not work 
after restoring backup configs, so I have been trying to rebuild it. In the 
process I'm moving from cyrus to dovecot. That seems okay, but I'm having real 
trouble getting things to happen here. Note that this mail server is here to 
move mail on the LAN only, there is no access to anything outside this LAN 
required.

I can telnet into all the relevant ports okay. I can openssl into the secured 
ports from the server as well as a client machine. Trouble is, I can't actually 
send mail from any machine. The user madams is the ID for root in postfix (from 
postfix/aliases: root:  madams), all other aliases are for root and these are 
the only 2 users on the system at this point. I have run newaliases with no 
error.

Here is how a transaction goes under telnet:

$ telnet shuttle 25
Trying 192.168.1.105...
Connected to shuttle.
Escape character is '^]'.
220 shuttle ESMTP Postfix
ehlo shuttle
250-shuttle
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
mail from: madams@shuttle
250 2.1.0 Ok
rcpt to: root@shuttle
250 2.1.5 Ok
data
354 End data with .
subject: Test

testing.

.
250 2.0.0 Ok: queued as 5F79F4A4274


Nothing shows up in the user's email:

madams@spike bin]$ mail
No mail for madams



Here is my config for postfix main.cf:

less main.cf
biff = no
myhostname = shuttle
#myorigin = /etc/mailname
myorigin = $myhostname
#mydestination = mail.freedif.org, freedif.org, localhost, localhost.localdomain
mydestination = shuttle, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [:::127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases.db

mail_spool_directory = /var/spool/mail

smtpd_tls_cert_file=/etc/ssl/certs/adams-lan.mail.pem
smtpd_tls_key_file=/etc/ssl/private/adams-lan.mail.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_security_level=may
smtpd_tls_protocols = !SSLv2, !SSLv3

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_authenticated_header = yes

#home_mailbox = Maildir/
#home_mailbox = /var/spool/mail/%u
compatibility_level = 2
debug_peer_list = 127.0.0.1


Postfix master.cf looks like this:

# ==
# service type  private unpriv  chroot  wakeup  maxproc command + args
#   (yes)   (yes)   (no)(never) (100)
# ==
smtpinetn   -   y   -   -   smtpd -v
#smtp  inet  n   -   n   -   1   postscreen
#smtpd pass  -   -   n   -   -   smtpd
#dnsblog   unix  -   -   n   -   0   dnsblog
#tlsproxy  unix  -   -   n   -   0   tlsproxy
#submission inet n   -   n   -   -   smtpd
submission inet n   -   n   -   -   smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_wrappermode=no
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o 
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject,reject_unauth_destination
  -o smtpd_relay_restrictions=reject,reject_unauth_destination
  -o milter_macro_daemon_name=ORIGINATING
  -o smtpd_sasl_type=dovecot
  -o smtpd_sasl_path=private/auth

ickup  unixn   -   y   60  1   pickup
  -o content_filter=
  -o receive_override_options=
cleanup unixn   -   y   -   0   cleanup
qmgrunixn   -   y   300 1   qmgr
#qmgr unix  n   -   n   300 1   oqmgr
tlsmgr  unix-   -   y   1000?   1   tlsmgr
rewrite unix-   -   y   -   -   trivial-rewrite
bounce  unix-   -   y   -   0   bounce
defer   unix-   -   y   -   0   bounce
trace   unix-   -   y   -   0   bounce
verify  unix-   -