Всем привет.
Подскажите как узнать о времени последнего SMTP-запроса к серверу (от конкретного IP) без прав root?
Первое, что приходит в голову - /var/log/maillog. Второе - tcpdump. И там и там нужен root
Еще такой момент - если iptables блокирует порт, то снифер не увидет запрос? Теоретически iptables работает на уровне ядра, но tcpdump вроди бы тоже оттуда инфу тянет, если не ошибаюсь.
Спасибо
Время последнего SMTP-запроса (без root!)
Модератор: SLEDopit
- Stauffenberg
- Сообщения: 2042
- Статус: ☮ PEACE ☮
- ОС: открытая и свободная
Время последнего SMTP-запроса
Labor omnia vincit
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
Re: Время последнего SMTP-запроса
Зависит от используемой системы, например для Exim Вы можете использовать exigrep.
- Stauffenberg
- Сообщения: 2042
- Статус: ☮ PEACE ☮
- ОС: открытая и свободная
Re: Время последнего SMTP-запроса
Postfix...
Labor omnia vincit
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
Re: Время последнего SMTP-запроса
А в чем, собственно, проблема? Добавьте юзера в группу adm или используйте sudo:
* tail -f /var/log/mail.log
* sudo tail -f /var/log/mail.log
* tail -f /var/log/mail.log
* sudo tail -f /var/log/mail.log
- Stauffenberg
- Сообщения: 2042
- Статус: ☮ PEACE ☮
- ОС: открытая и свободная
Re: Время последнего SMTP-запроса
Нет прав. Я не могу что-то сделать на этой машине от root.
Labor omnia vincit
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
- Bizdelnick
- Модератор
- Сообщения: 20752
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: Время последнего SMTP-запроса
Тогда какая речь может быть о запуске снифера? Максимум, что можно узнать, это время добавления последней записи в лог: stat -c %y /var/log/maillog.
Пишите правильно:
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
- Stauffenberg
- Сообщения: 2042
- Статус: ☮ PEACE ☮
- ОС: открытая и свободная
Re: Время последнего SMTP-запроса
О запуске снифера речь и не идет. Я в самом первом сообщении об этом написал.
Bizdelnick писал(а): ↑23.07.2015 16:54Максимум, что можно узнать, это время добавления последней записи в лог: stat -c %y /var/log/maillog.
Это уже что-то. Спасибо.
Labor omnia vincit
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)