Language:
switch to room list switch to menu My folders
Go to page: First ... 30 31 32 33 [34]
[#] Tue Jan 12 2021 14:09:35 EST from markus

Subject: Re: How to use ctdlmigrate successfully?

[Reply] [ReplyQuoted] [Headers] [Print]

Thank you, ParanoidDelusions, for your kind help. Put I didn't get it done. I think my citadel source system needs an upgrade first. And Ihat's not what I want to do because I would need to upgrade the whole system. Too much can go wrong. So I go the mail user agent way.

Fri Jan 08 2021 00:45:52 EST from ParanoidDelusions Subject: Re: How to use ctdlmigrate successfully?

Ask the guys here - I was in such full-blown panic mode I was driving them nuts with badly formed questions I'd answer myself a day later.

But... let me think about that. It was from non-like 9xx versions - I made an image of my SD and then upgraded it to the same version, first. It was on Raspbian to Debian. I did enable the root account on the Pi, and I feel like that was a major step forward. I used a combination of ctdlmigrate

 

https://www.citadel.org/how_do_i_move_citadel_to_another_host.html

Rsync failed with permissions issue. I looked at the commands that failed, ran them manually under root on the source machine, and most of them worked. The ones that failed were the /files folder - which it seems like Raspbian even locks root out of that folder. Later I took ownership of it and moved it over. It helped me figure out a lot of what was going on, and going wrong, on the Pi.


Again, there is a spinning / when you run this, I believe. It would just stall out on me. I finally got it to run once, and it spun the whole time.

That is what got me looking at syslog with -f and where I noticed the series of errors as it was importing. The time I saw it was not throwing errors, I can't tell you why.

But after that I was rebuilding and tweaking it and trying to import it from one like Debian machine to another - and I think then I was playing around with ./sendcommand "MIGR export" >exported.xml and I had that file in /


The instructions for that are at:

https://www.citadel.org/system_administration_manual.html


Under

Importing/Exporting your Citadel database



Sorry - I really wish I could be more help. I'll have a look at my history and bookmarks and see if they give me any other insight what I did right. Again, if you read back a dozen or so pages, you'll see my online meltdown where I was describing what I was doing and what was happening. It could help, too.

Thu Jan 07 2021 21:13:43 EST from markus Subject: Re: How to use ctdlmigrate successfully?

I wish you could remember, too :-)

Did you migrate between the same version of citadel on RiP 3b+ and on i5 or at least between the same major numbers like 8xx or 9xx?

Was a password set for your admin-account on citadel of RPi 3b+?

Did you copy any files from RPi 3b+ to i5 except the export of the database on RPi 3b+?

 



 



[#] Tue Jan 12 2021 15:55:36 EST from ParanoidDelusions

Subject: Re: How to use ctdlmigrate successfully?

[Reply] [ReplyQuoted] [Headers] [Print]

Yes, the base and target system do need to be upgraded to the same version for this to work. I did upgrade the version on the Pi to the version running on IA before doing the migrate. 

You shouldn't need to upgrade the whole system, though. Do you mean the Linux distro, (i.e, apt-get update && apt-get dist-upgrade) or the hardware itself would need to be upgraded?

I'm pretty sure I didn't do a dist-ugprade on the Pi before I upgraded to the most recent version of Citadel. I did make a backup image of the Pi's SD card and tested it first, then did the Citadel Upgrade, then did the Citadel migrate. 

 

 

 

Tue Jan 12 2021 14:09:35 EST from markus Subject: Re: How to use ctdlmigrate successfully?

Thank you, ParanoidDelusions, for your kind help. Put I didn't get it done. I think my citadel source system needs an upgrade first. And Ihat's not what I want to do because I would need to upgrade the whole system. Too much can go wrong. So I go the mail user agent way.

Fri Jan 08 2021 00:45:52 EST from ParanoidDelusions Subject: Re: How to use ctdlmigrate successfully?

Ask the guys here - I was in such full-blown panic mode I was driving them nuts with badly formed questions I'd answer myself a day later.

But... let me think about that. It was from non-like 9xx versions - I made an image of my SD and then upgraded it to the same version, first. It was on Raspbian to Debian. I did enable the root account on the Pi, and I feel like that was a major step forward. I used a combination of ctdlmigrate

 

https://www.citadel.org/how_do_i_move_citadel_to_another_host.html

Rsync failed with permissions issue. I looked at the commands that failed, ran them manually under root on the source machine, and most of them worked. The ones that failed were the /files folder - which it seems like Raspbian even locks root out of that folder. Later I took ownership of it and moved it over. It helped me figure out a lot of what was going on, and going wrong, on the Pi.


Again, there is a spinning / when you run this, I believe. It would just stall out on me. I finally got it to run once, and it spun the whole time.

That is what got me looking at syslog with -f and where I noticed the series of errors as it was importing. The time I saw it was not throwing errors, I can't tell you why.

But after that I was rebuilding and tweaking it and trying to import it from one like Debian machine to another - and I think then I was playing around with ./sendcommand "MIGR export" >exported.xml and I had that file in /


The instructions for that are at:

https://www.citadel.org/system_administration_manual.html


Under

Importing/Exporting your Citadel database



Sorry - I really wish I could be more help. I'll have a look at my history and bookmarks and see if they give me any other insight what I did right. Again, if you read back a dozen or so pages, you'll see my online meltdown where I was describing what I was doing and what was happening. It could help, too.

Thu Jan 07 2021 21:13:43 EST from markus Subject: Re: How to use ctdlmigrate successfully?

I wish you could remember, too :-)

Did you migrate between the same version of citadel on RiP 3b+ and on i5 or at least between the same major numbers like 8xx or 9xx?

Was a password set for your admin-account on citadel of RPi 3b+?

Did you copy any files from RPi 3b+ to i5 except the export of the database on RPi 3b+?

 



 



 



[#] Wed Jan 13 2021 02:04:12 EST from Michael

Subject: Re: Citadel log level

[Reply] [ReplyQuoted] [Headers] [Print]

omatnet,

take a look at the attachments.  I am using spamassassin and have the "
Perform RBL checks upon connect instead of after RCPT" option checked (citadel smtp administration tab). My failregex ckecks for smtp auth errors and rbls.

Verify the paths work for you (e.g. path to citadel or your log files)

Let me know if it worked.

Michael

Sun Jan 10 2021 18:25:58 EST from omatnet Subject: Re: Citadel log level

Glad I was able to help Michael,

Do have a fail2ban filter file for citadel, something that would be under the 'filter.d'? I wasn't able to find a proper filter that would work for citadel with fail2ban.

If yes, could you please share it? (will save me time instead of building the filter file from scratch).

Thanks!

Sat Jan 09 2021 08:31:26 EST from Michael Subject: Re: Citadel log level

Works

syslog: mail citserver[1467]: citserver[1467]: user_ops: bad password specified for <> Service <SMTP-MTA> Port <port #> Remote <OP address / IP addrress>

mail.log: mail citserver[1467]: user_ops: bad password specified for <> Service <SMTP-MTA> Port <port #> Remote <OP address / IP addrress>

 

Sat Jan 09 2021 08:13:52 EST from Michael Subject: Re: Citadel log level

Thanks a bunch for taking another look at it. I implemented the change to citadel.service and will do some smpt auth testing later today. FYI - there is a failregex sample described in the Citadel Security room here on this bbs

Fri Jan 08 2021 20:22:13 EST from omatnet Subject: Re: Citadel log level

I may have found the solution to the problem I experienced in my previous answer/solution below: The '-d' parameter was originally supposed to cause Citserver to run as a daemon. But possibly with systemd it is not needed anymore, or not supported correctly since in fact it caused citserver to have two instances in memory. I removed the '-d' parameter so the line in /etc/systemd/system/citadel.service is now:

/usr/local/citadel/citserver -lmail -x6

and now I am able to see bad login attempts in /var/log/mail.log so fail2ban mail filter should be able to find it and activate blocking. The bad login attempt error line contains the text "user_ops: bad password specified for" as well as the IP number of the offending machine trying to log in, which can be used in the fail2ban filter. I haven't tested yet with fail2ban, but will do so shortly.

By the way, in case you need, the highest level of logging is X7 (the levels are 0-7, 0 being the minimum and 7 being the maximum)

 

Fri Jan 08 2021 19:47:14 EST from omatnet Subject: Re: Citadel log level

I have a partial answer for you, but also extend your question so hope that someone else would be able to complete the answer - since I am also trying to use fail2ban with Citadel and it doesn't work as it should:

In previous versions of Citadel, there was an option to add command line parameters that will set the log level. I used to use: 

/usr/local/citadel/citserver -lmail -d -x6

which means using the most verbose logging level and using /var/log/mail.log as the log file (although I think it is the default now, in the past it went only to syslog)

With systemd Citadel is running as a service, so I tried to make this changes to the /etc/systemd/system/citadel.service file but I after the change and restart I am not seeing any difference in the log level. I can verify (with 'ps x | grep citserver') that the command line parameters are sent to citserver, BUT I DO NOT see any difference in the log level at mail.log

Another problem - I can see that some of the Citadel logging data is saved at /var/log/mail.log and some of it is at /var/log/syslog - specifically the login authorization data (bad login attempts, which fail2ban needs to monitor).

That is a problem since fail2ban can only monitor a single log file per 'jail'. Of course I can try and bypass and create 2 fail2ban jails for Citadel but that complicate things quite a bit and it is not supposed to be that way.

Can anyone share further advice on that? Thank you!

 

Thu Jan 07 2021 14:45:00 EST from mkuhn Subject: Citadel log level

Hi,

Happy new year!

I'm running Citadel 930 and Webcit 927, installed with easyinstall on my Odroid C2 (updating config.guess in libcitadel.tar and citadel-easyinstall.tar would be great). 

I would like to change the log level for smtp events to let Fail2ban block IPs (i.e. telnet connects on port 25).  What would I need to do to generate that information in either mail.log or syslog?

Regards.

Michael

 



 



 



 



 



 



 



sendmail-common.conf (application/octet-stream, 2514 bytes) [ View | Download ]
sendmail-whois-ipjailmatches.conf (application/octet-stream, 1438 bytes) [ View | Download ]
sendmail-whois-lines.conf (application/octet-stream, 1775 bytes) [ View | Download ]
sendmail-whois-ipmatches.conf (application/octet-stream, 1414 bytes) [ View | Download ]
sendmail-buffered.conf (application/octet-stream, 3874 bytes) [ View | Download ]
citserver.conf (application/octet-stream, 1166 bytes) [ View | Download ]
sendmail-whois.conf (application/octet-stream, 1337 bytes) [ View | Download ]
jail.conf (application/octet-stream, 436 bytes) [ View | Download ]
sendmail.conf (application/octet-stream, 1174 bytes) [ View | Download ]
sendmail-geoip-lines.conf (application/octet-stream, 2408 bytes) [ View | Download ]
jail.local (application/octet-stream, 963 bytes) [ View | Download ]
fail2ban.conf (application/octet-stream, 3277 bytes) [ View | Download ]
sendmail-whois-matches.conf (application/octet-stream, 1361 bytes) [ View | Download ]
[#] Wed Jan 13 2021 04:27:27 EST from hosamgamal636gmail.com

Subject: Sending Mail Problem

[Reply] [ReplyQuoted] [Headers] [Print]

Hello
No email is sent and this error appears
requested action not taken mailbox unavailable or relaying denied

Possible solution to this error !?

Thanks



[#] Wed Jan 13 2021 04:41:51 EST from yousif

Subject: sending mails error

[Reply] [ReplyQuoted] [Headers] [Print]

i can receive emails but can't send and i have the attached error 

(550 (Requested action not taken: mailbox unavailable or relaying denied)



12.PNG (image/png, 21631 bytes) [ View | Download ]
[#] Wed Jan 13 2021 06:04:06 EST from hosamgamal636gmail.com

Subject: Sending Mail Problem

[Reply] [ReplyQuoted] [Headers] [Print]

Hello
No email is sent and this error appears
requested action not taken mailbox unavailable or relaying denied

Possible solution to this error !?

Thanks



[#] Wed Jan 13 2021 14:40:57 EST from omatnet

Subject: Re: Citadel log level

[Reply] [ReplyQuoted] [Headers] [Print]

Thanks Michael,

I also noticed that warbaby posted a 'Quick and dirty fail2ban filter for Citadel' in the Citadel Security room:

http://uncensored.citadel.org/webcit/webcit/dotgoto?room=Citadel%20Security

 

Wed Jan 13 2021 02:04:12 EST from Michael Subject: Re: Citadel log level

omatnet,

take a look at the attachments.  I am using spamassassin and have the "
Perform RBL checks upon connect instead of after RCPT" option checked (citadel smtp administration tab). My failregex ckecks for smtp auth errors and rbls.

Verify the paths work for you (e.g. path to citadel or your log files)

Let me know if it worked.

Michael

Sun Jan 10 2021 18:25:58 EST from omatnet Subject: Re: Citadel log level

Glad I was able to help Michael,

Do have a fail2ban filter file for citadel, something that would be under the 'filter.d'? I wasn't able to find a proper filter that would work for citadel with fail2ban.

If yes, could you please share it? (will save me time instead of building the filter file from scratch).

Thanks!

Sat Jan 09 2021 08:31:26 EST from Michael Subject: Re: Citadel log level

Works

syslog: mail citserver[1467]: citserver[1467]: user_ops: bad password specified for <> Service <SMTP-MTA> Port <port #> Remote <OP address / IP addrress>

mail.log: mail citserver[1467]: user_ops: bad password specified for <> Service <SMTP-MTA> Port <port #> Remote <OP address / IP addrress>

 

Sat Jan 09 2021 08:13:52 EST from Michael Subject: Re: Citadel log level

Thanks a bunch for taking another look at it. I implemented the change to citadel.service and will do some smpt auth testing later today. FYI - there is a failregex sample described in the Citadel Security room here on this bbs

Fri Jan 08 2021 20:22:13 EST from omatnet Subject: Re: Citadel log level

I may have found the solution to the problem I experienced in my previous answer/solution below: The '-d' parameter was originally supposed to cause Citserver to run as a daemon. But possibly with systemd it is not needed anymore, or not supported correctly since in fact it caused citserver to have two instances in memory. I removed the '-d' parameter so the line in /etc/systemd/system/citadel.service is now:

/usr/local/citadel/citserver -lmail -x6

and now I am able to see bad login attempts in /var/log/mail.log so fail2ban mail filter should be able to find it and activate blocking. The bad login attempt error line contains the text "user_ops: bad password specified for" as well as the IP number of the offending machine trying to log in, which can be used in the fail2ban filter. I haven't tested yet with fail2ban, but will do so shortly.

By the way, in case you need, the highest level of logging is X7 (the levels are 0-7, 0 being the minimum and 7 being the maximum)

 

Fri Jan 08 2021 19:47:14 EST from omatnet Subject: Re: Citadel log level

I have a partial answer for you, but also extend your question so hope that someone else would be able to complete the answer - since I am also trying to use fail2ban with Citadel and it doesn't work as it should:

In previous versions of Citadel, there was an option to add command line parameters that will set the log level. I used to use: 

/usr/local/citadel/citserver -lmail -d -x6

which means using the most verbose logging level and using /var/log/mail.log as the log file (although I think it is the default now, in the past it went only to syslog)

With systemd Citadel is running as a service, so I tried to make this changes to the /etc/systemd/system/citadel.service file but I after the change and restart I am not seeing any difference in the log level. I can verify (with 'ps x | grep citserver') that the command line parameters are sent to citserver, BUT I DO NOT see any difference in the log level at mail.log

Another problem - I can see that some of the Citadel logging data is saved at /var/log/mail.log and some of it is at /var/log/syslog - specifically the login authorization data (bad login attempts, which fail2ban needs to monitor).

That is a problem since fail2ban can only monitor a single log file per 'jail'. Of course I can try and bypass and create 2 fail2ban jails for Citadel but that complicate things quite a bit and it is not supposed to be that way.

Can anyone share further advice on that? Thank you!

 

Thu Jan 07 2021 14:45:00 EST from mkuhn Subject: Citadel log level

Hi,

Happy new year!

I'm running Citadel 930 and Webcit 927, installed with easyinstall on my Odroid C2 (updating config.guess in libcitadel.tar and citadel-easyinstall.tar would be great). 

I would like to change the log level for smtp events to let Fail2ban block IPs (i.e. telnet connects on port 25).  What would I need to do to generate that information in either mail.log or syslog?

Regards.

Michael

 



 



 



 



 



 



 



 



sendmail-buffered.conf (application/octet-stream, 3874 bytes) [ View | Download ]
citserver.conf (application/octet-stream, 1166 bytes) [ View | Download ]
sendmail-whois-ipjailmatches.conf (application/octet-stream, 1438 bytes) [ View | Download ]
sendmail.conf (application/octet-stream, 1174 bytes) [ View | Download ]
sendmail-common.conf (application/octet-stream, 2514 bytes) [ View | Download ]
fail2ban.conf (application/octet-stream, 3277 bytes) [ View | Download ]
sendmail-whois-lines.conf (application/octet-stream, 1775 bytes) [ View | Download ]
jail.local (application/octet-stream, 963 bytes) [ View | Download ]
jail.conf (application/octet-stream, 436 bytes) [ View | Download ]
sendmail-geoip-lines.conf (application/octet-stream, 2408 bytes) [ View | Download ]
sendmail-whois.conf (application/octet-stream, 1337 bytes) [ View | Download ]
sendmail-whois-matches.conf (application/octet-stream, 1361 bytes) [ View | Download ]
sendmail-whois-ipmatches.conf (application/octet-stream, 1414 bytes) [ View | Download ]
[#] Fri Jan 15 2021 03:37:10 EST from ColP

Subject: Re: My citadel is no longer functioning

[Reply] [ReplyQuoted] [Headers] [Print]

 

Mon Jan 11 2021 14:56:24 EST from calcmandan Subject: My citadel is no longer functioning

My citadel server, which is being used only for email, has degraded to the point that it no longer runs. I can't log into the web interface. My devices can't fetch mail. It is running on an ubuntu server and was configured after easy install.

After it stopped working, I attempted to do an easy install from an updated package. When I ssh into the box I get the following messages:

citserver[3250]: db: cdb_fetch(9): BDB0075 DB_PAGE_NOTFOUND: Requested page not found

I was seeing these messages even before attempting to patch with the latest. Not sure what to do from here.



Hi,

I‘m by no means an expert, but every problem I’ve had so far with Citadel has been a database one.

If it’s not happy with the data, the server won’t start. Do you have any backups of the data directory?



[#] Fri Jan 15 2021 18:00:40 EST from w1kgk

Subject: login

[Reply] [ReplyQuoted] [Headers] [Print]

I type the address of 192.168.1.xxx  of the raspberry pi to get the citadel login page...no login page appears?

How do i get the login page to come up?



[#] Fri Jan 15 2021 18:45:03 EST from ParanoidDelusions

Subject: Re: login

[Reply] [ReplyQuoted] [Headers] [Print]

On the Pi, open the browser, and try http://127.0.0.1 

Did you leave it on the default port (80?) 

If so, do you have Apache running and installed on the default port too? 

 

Fri Jan 15 2021 18:00:40 EST from w1kgk Subject: login

I type the address of 192.168.1.xxx  of the raspberry pi to get the citadel login page...no login page appears?

How do i get the login page to come up?



 



[#] Fri Jan 15 2021 23:43:38 EST from sethmhur

Subject: trying to configure nntp on private citadel server

[Reply] [ReplyQuoted] [Headers] [Print]

So as the subject says I'm trying to configure nntp access for my rooms on a private server how would I do this?



[#] Sat Jan 16 2021 13:47:42 EST from Syd

Subject: logging in

[Reply] [ReplyQuoted] [Headers] [Print]

Hi, If you wish to bad mouth me well OK

I have or think I have installed CITADEL but cannot find out how to log in.

Could someone kindly direct me to relevent information please or better still tell me how to

Cheers

Syd



[#] Sat Jan 16 2021 16:00:16 EST from IGnatius T Foobar

Subject: Re: logging in

[Reply] [ReplyQuoted] [Headers] [Print]


I will badmouth you for posting your support request in the LOBBY instead of in the CITADEL SUPPORT room.

But to answer your question: connect your web browser to the port specified for WebCit during the setup process. The default username is "admin" and the default password is "citadel".

Go to page: First ... 30 31 32 33 [34]