Welcome! » Log In » Create A New Profile

bsmtp will not end smtp connection correctly on freenas/bsd

Posted by philhu 
bsmtp will not end smtp connection correctly on freenas/bsd
August 13, 2016 12:39PM
While trying to use bsmtp on a freenas system, jail. It seems to get to the postfix smtp server correctly, but hangs at the point of sending the data and ending. I am trying to hand run it to see the error, and it looks like bsmtp problem. I did not have any problems on a centos bacula box. I have now switched over to a free nas system, running bacula in a jail.

See this debug output:
root@Jail_Bacula:/NFS/data/public # /usr/sbin/bsmtp-hold -h vmcentos6.home -d 100 -f "Bacula <bacula@isone.biz>" -s "Test subj" phil@isne.biz
bsmtp: bsmtp.c:312-0 Debug level = 100
bsmtp: bsmtp.c:330-0 subject=Test subj
bsmtp: bsmtp.c:406-0 My hostname is: Jail_Bacula
bsmtp: bsmtp.c:430-0 From addr=Bacula <bacula@isone.biz>
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 220 vmcentos6.isone.biz ESMTP Postfix
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 220 vmcentos6.isone.biz ESMTP Postfix
Jail_Bacula --> HELO Jail_Bacula
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 250 vmcentos6.isone.biz
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 250 vmcentos6.isone.biz
bsmtp: bsmtp.c:99-0 cleanup in=Bacula <bacula@isne.biz> out=<bacula@isne.biz>
Jail_Bacula --> MAIL FROM:<bacula@isne.biz>
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 250 2.1.0 Ok
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 250 2.1.0 Ok
bsmtp: bsmtp.c:573-0 rcpt to: phil@isne.biz
bsmtp: bsmtp.c:99-0 cleanup in=phil@isne.biz out=<phil@isne.biz>
Jail_Bacula --> RCPT TO:<phil@isne.biz>
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 250 2.1.5 Ok
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 250 2.1.5 Ok
bsmtp: bsmtp.c:580-0 Data
Jail_Bacula --> DATA
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 354 End data with <CR><LF>.<CR><LF>
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 354 End data with <CR><LF>.<CR><LF>
bsmtp: bsmtp.c:587-0 From: Bacula <bacula@isone.biz>
bsmtp: bsmtp.c:590-0 Subject: Test subj
bsmtp: bsmtp.c:618-0 Sender: root@Jail_Bacula
bsmtp: bsmtp.c:623-0 To: phil@isone.bizbsmtp: bsmtp.c:630-0
bsmtp: bsmtp.c:643-0 Date: Sat, 13 Aug 2016 15:32:49 -0400 (EDT)

It stops there, I can hit a ctrl/d there to end it and the postfix system hangs up and returns the mail job id, but bsmtp doesn't seem to end the connection correctly on its own.
bsmtp will not end smtp connection correctly on freenas/bsd
August 15, 2016 07:27AM
It takes the message body on stdin, so I wouldn't expect it to end until
ctrl/d or EOF.

[quote][quote][quote][quote][quote]On Sat, 13 Aug 2016 12:39:27 -0700, philhu said:
[/quote][/quote][/quote][/quote]
While trying to use bsmtp on a freenas system, jail. It seems to get to the postfix smtp server correctly, but hangs at the point of sending the data and ending. I am trying to hand run it to see the error, and it looks like bsmtp problem. I did not have any problems on a centos bacula box. I have now switched over to a free nas system, running bacula in a jail.

See this debug output:
root < at > Jail_Bacula:/NFS/data/public # /usr/sbin/bsmtp-hold -h vmcentos6.home -d 100 -f "Bacula <bacula < at > isone.biz>" -s "Test subj" phil < at > isne.biz
bsmtp: bsmtp.c:312-0 Debug level = 100
bsmtp: bsmtp.c:330-0 subject=Test subj
bsmtp: bsmtp.c:406-0 My hostname is: Jail_Bacula
bsmtp: bsmtp.c:430-0 From addr=Bacula <bacula < at > isone.biz>
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 220 vmcentos6.isone.biz ESMTP Postfix
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 220 vmcentos6.isone.biz ESMTP Postfix
Jail_Bacula --> HELO Jail_Bacula
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 250 vmcentos6.isone.biz
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 250 vmcentos6.isone.biz
bsmtp: bsmtp.c:99-0 cleanup in=Bacula <bacula < at > isne.biz> out=<bacula < at > isne.biz>
Jail_Bacula --> MAIL FROM:<bacula < at > isne.biz>
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 250 2.1.0 Ok
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 250 2.1.0 Ok
bsmtp: bsmtp.c:573-0 rcpt to: phil < at > isne.biz
bsmtp: bsmtp.c:99-0 cleanup in=phil < at > isne.biz out=<phil < at > isne.biz>
Jail_Bacula --> RCPT TO:<phil < at > isne.biz>
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 250 2.1.5 Ok
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 250 2.1.5 Ok
bsmtp: bsmtp.c:580-0 Data
Jail_Bacula --> DATA
bsmtp: bsmtp.c:110-0 Calling fgets on read socket rfp.
vmcentos6.home <-- 354 End data with <CR><LF>.<CR><LF>
bsmtp: bsmtp.c:120-0 vmcentos6.home --> 354 End data with <CR><LF>.<CR><LF>
bsmtp: bsmtp.c:587-0 From: Bacula <bacula < at > isone.biz>
bsmtp: bsmtp.c:590-0 Subject: Test subj
bsmtp: bsmtp.c:618-0 Sender: root < at > Jail_Bacula
bsmtp: bsmtp.c:623-0 To: phil < at > isone.bizbsmtp: bsmtp.c:630-0
bsmtp: bsmtp.c:643-0 Date: Sat, 13 Aug 2016 15:32:49 -0400 (EDT)

It stops there, I can hit a ctrl/d there to end it and the postfix system hangs up and returns the mail job id, but bsmtp doesn't seem to end the connection correctly on its own.
[/quote]
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
bsmtp will not end smtp connection correctly on freenas/bsd
August 15, 2016 11:10AM
yep, senior moment. Works fine
Sorry, only registered users may post in this forum.

Click here to login