sendmail/functionality/selftest/main.fmf
2025-02-18 15:35:16 +01:00

88 lines
2.5 KiB
Text

summary: Sendmail -- sanity checking, mail delivery/forwarding/sending/, sendmail
compiling info, queue,mx-record, parsing mail address, creating right header, aliases
description: |
Test Name: sendmail
Author: Petr Sklenar <psklenar@redhat.com>
Location: /CoreOS/sendmail/functionality/singlehost
Description: Sendmail -- sanity checking, mail delivery/forwarding/sending/, sendmail compiling info, queue,mx-record, parsing mail address, creating right header, aliases
Long Description:
Test the internet delivery
Test the internet forwarding
Test mail sending and delivering
#Mail is send from one user, another user is reading that mail
Show Delivery Agent info,cmd: sendmail -d0.12 -bt
#There is command: /usr/lib/sendmail -d0.12 -bt < /dev/null
Macro test
#Look at macros: /usr/lib/sendmail -d35.9 -bt < /dev/null
Testing sendmail queue,cmd sendmail -bp
#queue command: /usr/lib/sendmail -bp
Testing /mx redhat.com record with command: sendmail -bt
#sendmail can read mx record, when passes :
#/usr/lib/sendmail -bt << EOF > $DIR/sendmail.mx
#/mx redhat.com
#EOF
Testing sendmail parsing mail address
#Sendmail can parse mail address, when passes:
#/usr/lib/sendmail -bt << EOF > $DIR/sendmail.parser
#0,4 psklenar@redhat.com
#
#EOF
Testing sendmail creating header
#Header is creating up to local setting:
#
#/usr/lib/sendmail -bt << EOF > $DIR/sendmail.header
#/tryflags HS
#/try smtp petr
#
#EOF
Testing sendmail initializing the alias db, command: sendmail -bi
#settings:
#echo psklenar: root >> /etc/aliases
#Following command should end with 0 and add new allias to database
#/usr/lib/sendmail -bi
aliases, sendmail -bv -v non_exists_user
#check if it cannot find non_exists_user
aliases, sendmail -bv -v user_exists
#check if new allias is in database
contact: Frantisek Hrdina <fhrdina@redhat.com>
component:
- sendmail
test: ./runtest.sh
framework: beakerlib
recommend:
- sendmail
- sendmail-cf
- procmail
- procps-ng
- mailx
- m4
- make
duration: 1h
enabled: true
tag:
- Tier1
tier: '1'
adjust+:
- enabled: false
when: distro >= rhel-10
continue: false
- enabled: false
when: distro >= centos-stream-10
continue: false
extra-nitrate: TC#0105693
extra-summary: /CoreOS/sendmail/functionality/selftest
extra-task: /CoreOS/sendmail/functionality/selftest
id: bf1dd848-e1fb-4c91-99cd-e7d9290d72e6