scan only for tags

This commit is contained in:
2025-03-17 20:25:33 +01:00
parent 16e35505d6
commit f1b14d5974
3 changed files with 27 additions and 12 deletions

View File

@ -4,13 +4,13 @@ package require base64
# SMTP-Server und Port definieren
set smtp_server "localhost"
set smtp_server "172.16.3.33"
set smtp_port "25"
set timeout 25
# Absender, Empfänger und Nachricht
set sender $env(SMTP_SENDER)
set recipient "test@hottis.de"
set recipient $env(SMTP_RECIPIENT)
set message "Subject: Test Email\r\n\r\nThis is a test email sent via an expect script."
set smtp_user $env(SMTP_USER)
@ -27,17 +27,21 @@ spawn nc -C $smtp_server $smtp_port
expect "220 *"
# HELO/EHLO senden
send "EHLO de01rdsi01.krohnegroup.com\n"
send "EHLO baikonur\n"
expect "250 *"
send "AUTH LOGIN\n"
expect "334 VXNlcm5hbWU6"
if {[info exists smtp_user] && $smtp_user ne ""} {
send "AUTH LOGIN\n"
expect "334 VXNlcm5hbWU6"
send "$smtp_user_64\n"
expect "334 UGFzc3dvcmQ6"
send "$smtp_user_64\n"
expect "334 UGFzc3dvcmQ6"
send "$smtp_pass_64\n"
expect "235 2.7.0 Authentication successful"
send "$smtp_pass_64\n"
expect "235 2.7.0 Authentication successful"
} else {
puts "skip authentication"
}
# Absender definieren
send "MAIL FROM:<$sender>\n"